Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

156
Vistas
NodeJS from localhost to online site

I have a site that I created using NodeJS and one page html/jquery everything is working as expected on the localhost provided but I'm getting some issue in putting that site online www.xxxx.com, I already got a .com domain but I don't know which configuration should I do on my site and on code , which mean is there steps to follow on the app.js which contain the localhost:3500 ?

This is the structure of my folder developped under VSCODE

the structure of my folder

and this is my statement app.js of the localhost

//start the server.
app.listen(3500, function () {
 console.log('Example app listening on port 3500!');
});

Hope I mentioned everything Best Regards

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

To host a website, you not only need the domain name (.com), but you also need the server and hosting.

Here you can find details:

  • Setting up Nginx server blocks (virtual hosts) on Ubuntu using NGINX (free and open source)

    https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04

  • For windows:

    https://www.rapidvaluesolutions.com/tech_blog/nginx-server-deploying-web-applications/

over 4 years ago · Santiago Trujillo Denunciar

0

If you're like me who doesn't want to get into the configuration details of the host server, check out heroku. It's a platform-as-a-service that allows you to host a site really easily and it has a pretty generous free-tier. Not much will have to change code-wise maybe just making the port a variable.

One major issue I had with the platform is that you cannot save files on the filesystem using code, you'll have to use an external file storage like AWS.

The other, slightly minor issue is that you need to be using git to push your code to the heroku servers (Not really an issue tbh since you really should look into git if you aren't using it already)

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda