Open yoihito opened 8 years ago
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 concurrently@0.1.1"
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 notifications@github.com:
@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.
Hey guys! I tried to publish my app based on this boilerplate to AWS Elastic Beanstalk. Deploy failed. I got something like this:
How can i resolve it?