#!/usr/bin/env bash

set -e

cd /home/ubuntu/pageshot/server
export DB_HOST=pageshot.czvvrkdqhklf.us-east-1.rds.amazonaws.com
export DB_USER=pageshot
export DB_PASS=pageshot
export DB_NAME=pageshot
export NODE_ENV=production

NODE=/home/ubuntu/.nvm/versions/node/v0.12.0/bin/node

exec $NODE ./run &>> /home/ubuntu/pageshot.logs

#!/usr/bin/env bash

set -e

cd /home/ubuntu/pageshot/server
export DB_HOST=pageshot.czvvrkdqhklf.us-east-1.rds.amazonaws.com
export DB_USER=pageshot
export DB_PASS=pageshot
NODE=/home/ubuntu/.nvm/versions/node/v0.12.0/bin/node

exec $NODE ./run &>> /home/ubuntu/pageshot.logs

--- 
+++ 
@@ -6,9 +6,6 @@
 export DB_HOST=pageshot.czvvrkdqhklf.us-east-1.rds.amazonaws.com
 export DB_USER=pageshot
 export DB_PASS=pageshot
-export DB_NAME=pageshot
-export NODE_ENV=production
-
 NODE=/home/ubuntu/.nvm/versions/node/v0.12.0/bin/node
 
 exec $NODE ./run &>> /home/ubuntu/pageshot.logs
Tweak the environment for production
