I am trying to get a very simple nodejs app to go though my setup (BitBucket to AWS), and I can get the default example to work:
https://github.com/awslabs/aws-codedeploy-samples/tree/master/applications/SampleApp_Linux
But that example is in apache, httpd, so when I try to change the appspec.yml for nodejs, the setup brakes. This is my appspec.yml:
version: 0.0
os: linux
files:
- source: /
destination: /var/www/app
hooks:
BeforeInstall:
- location: scripts/install_dependencies
timeout: 300
runas: root
- location: scripts/start_server
timeout: 300
runas: root
install_dependencies:
#!/bin/bash
yum install -y nodejs npm
npm install
start_server:
#!/bin/bash
node server.js
start_server
will never return--does that mean that I should put it in ApplicationStart?