Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

120
Visualizações
Creating a node js project with lightsail

I am trying to deploy a react app using aws lightsail. I have read the documentation on https://docs.bitnami.com/general/infrastructure/nodejs/get-started/get-started/ but i stil cant get it to work. The commands that i use are the following:

sudo mkdir /opt/bitnami/projects // making the project directory
sudo chown $USER /opt/bitnami/projects // allowing permsions

git clone https://github.com/username/myapp.git
cd /opt/bitnami/projects/myapp
npm install

After installation of the project i configure the vhost files like so:

/opt/bitnami/apache/conf/vhosts/sample-vhost.conf.disabled
/opt/bitnami/apache/conf/vhosts/sample-https-vhost.conf.disabled
change to
/opt/bitnami/apache/conf/vhosts/myapp-vhost.conf
/opt/bitnami/apache/conf/vhosts/myapp-https-vhost.conf

the context of both files are change to:

<VirtualHost 127.0.0.1:443 _default_:443>
  ServerAlias *
  SSLEngine on
  SSLCertificateFile "/opt/bitnami/apache/conf/bitnami/certs/server.crt"
  SSLCertificateKeyFile "/opt/bitnami/apache/conf/bitnami/certs/server.key"
  DocumentRoot /opt/bitnami/projects/myapp // from sample
  <Directory "/opt/bitnami/projects/myapp"> // from sample
    Options -Indexes +FollowSymLinks -MultiViews
    AllowOverride All
    Require all granted
  </Directory>
  ProxyPass / http://localhost:3000/
  ProxyPassReverse / http://localhost:3000/
</VirtualHost>

same is done with the other file. Then i try to install pm2 and run the project but i cant get it to work. I get a 503 service unavailable error from the server.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda