Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # AWS BeenStalk and Node.JS
- ## App Location
- * Initially deployed to : `/tmp/deployment/application`
- * Moved afterwords to : `/var/app/current`
- Logs in `/var/log/eb-activity.log` and `/var/log/nodejs/nodejs.log`
- ## Access to node and npm binaries
- `export PATH=$PATH:/opt/elasticbeanstalk/node-install/node-v8.11.1-linux-x64/bin/`
- ## Install dependencies
- `/opt/elasticbeanstalk/containerfiles/ebnode.py --app-path /var/app/current --action npm-install`
- The `--app-path` argument was not working, following changes on `ebnode.py` to make it work:
- ```python
- def run_npm_install(self, app_path):
- bin_path = self.get_node_bin_path()
- #self.npm_install(bin_path, self.config_manager.get_container_config('app_staging_dir'))
- self.npm_install(bin_path, app_path);
- ```
- ## Change user to nodejs
- `sudo su - nodejs -s /bin/bash`
Add Comment
Please, Sign In to add comment