In elasticbeanstalk, can I ssh in and manually restart the (node) app?
Solution 1:
To modify the running code, edit the files in:
/var/app/current
Then, running:
sudo pkill -f node
will cause your node app to be restarted, with the latest code running.
Solution 2:
Elastic Beanstalk uses upstart to manage its processes.
You can use initctl to restart the processes.
For example
initctl restart nodejs
Obviously you can start it with start
instead of restart if it's not already running for some reason.
Similarly you can apply the same to any process managed by upstart. You can find the names of these processes using
initctl list