React-redux-universal-hot-example: How to deploy this boilerplate to Elastic Beanstalk?

Created on 8 Apr 2016  Â·  13Comments  Â·  Source: erikras/react-redux-universal-hot-example

Hey guys! I tried to publish my app based on this boilerplate to AWS Elastic Beanstalk. Deploy failed.
I got something like this:

 [email protected] start /var/app/current
 concurrent --kill-others "npm run start-prod" "npm run start-prod-api"
 sh: concurrent: command not found

How can i resolve it?

Most helpful comment

@demobo-com I used docker for deployment too, but It wasn't enough memory
for npm install with t2.micro or t2.small so I used t2.medium.

2016-06-18 13:02 GMT+03:00 Dongwoo Gim [email protected]:

@demobo-com https://github.com/demobo-com Maybe, you need to study
docker.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/erikras/react-redux-universal-hot-example/issues/1085#issuecomment-226933532,
or mute the thread
https://github.com/notifications/unsubscribe/ABn8atzUT9_PuPvYZK1lLypOfOPJwPoPks5qM8IggaJpZM4IC2tE
.

Best regard Vadim Gribanov

Linkedin: https://www.linkedin.com/in/yoihito
Skype: v1mk550
Github: https://github.com/yoihito

All 13 comments

I believe the command is supposed to be:
concurrently --kill-others "npm run start-prod" "npm run start-prod-api"
concurrently not concurrent

Same problem, concurrently dosen't fix it.

You should remind that ElasticBeanstalk(EB) npm install's with --production option. So you have to move concurrently module to "dependencies" from "devDependencies" in package.json.

Alternatively you can install it globally (so that the executable is on the path).
Add a file .ebextensions/01_install_concurrently.config with content:

commands:
  01_install_concurrently:
    command: "npm i -g concurrently"

@mpisanko Thanks for your advise. But, it has 'npm not found' error. some changing needed to following.

container_commands:
  01_install_concurrently:
    command: "export PATH=$PATH; npm install -g [email protected]"

But, I failed deploy to Beanstalk.

Sadly, Timeout error on t2.micro.

If using docker, it success.

Create the docker image, push to docker hub and deploy to AWS EB Docker.

https://github.com/erikras/react-redux-universal-hot-example/pull/946
& https://github.com/jlchereau/Docker-AWS/blob/master/docs/NGINX.md

@hanjukim Thank you!!

Did anyone successfully deploy this example app to Beanstalk?

@demobo-com Yes I did, after some modifications

@hanjukim can you shed some light on this? Maybe share a README guide on deployment on Beanstalk. Thanks a lot.

@demobo-com Check out #946 you better use docker because node.js version that ElasticBeanstalk uses is 4.x

@demobo-com Maybe, you need to study docker.

@demobo-com I used docker for deployment too, but It wasn't enough memory
for npm install with t2.micro or t2.small so I used t2.medium.

2016-06-18 13:02 GMT+03:00 Dongwoo Gim [email protected]:

@demobo-com https://github.com/demobo-com Maybe, you need to study
docker.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/erikras/react-redux-universal-hot-example/issues/1085#issuecomment-226933532,
or mute the thread
https://github.com/notifications/unsubscribe/ABn8atzUT9_PuPvYZK1lLypOfOPJwPoPks5qM8IggaJpZM4IC2tE
.

Best regard Vadim Gribanov

Linkedin: https://www.linkedin.com/in/yoihito
Skype: v1mk550
Github: https://github.com/yoihito

@yoihito docker image make localy and push to docker-hub.

elastic beanstalk only running your docker-image, don't run npm install.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sauravskumar picture sauravskumar  Â·  6Comments

Dt-dev28 picture Dt-dev28  Â·  3Comments

LarryEitel picture LarryEitel  Â·  4Comments

c089 picture c089  Â·  5Comments

jorgehmv picture jorgehmv  Â·  3Comments