Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when deploying app to AWS EC2 #206

Closed
siva563 opened this issue Jan 11, 2019 · 3 comments
Closed

Error when deploying app to AWS EC2 #206

siva563 opened this issue Jan 11, 2019 · 3 comments

Comments

@siva563
Copy link

siva563 commented Jan 11, 2019

UnhandledPromiseRejectionWarning: Error: Exited with code 3
Getting above error while deploying the Application into ec2 Instance AWS.

Could you please pass any suggestions

@DavideViolante DavideViolante changed the title UnhandledPromiseRejectionWarning: Error: Exited with code 3 Error when deploying app to AWS EC2 Oct 30, 2019
@DavideViolante
Copy link
Owner

The app supports Docker, so try to deploy it using AWS ECS: https://aws.amazon.com/getting-started/hands-on/deploy-docker-containers/

I'm sorry but I never tried on EC2. I leave the issue open if anyone know.

@DavideViolante
Copy link
Owner

Duplicate of #98

@DavideViolante DavideViolante marked this as a duplicate of #98 Jul 3, 2020
@DavideViolante
Copy link
Owner

I just deployed this app into an EC2 instance. I did the following:

  1. Edit the EC2 security group and add TCP port 3000 as an Inbound rule for source 0.0.0.0/0
  2. Clone this repo into the EC2 machine
  3. If you use a remote MongoDB instance, edit .env file
  4. Run npm ci
  5. Run npm run build or npm run buildprod
  6. Run npm run buildbe
  7. Run npm start
  8. The app is now running and listening on port 3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants