#!/bin/bash

PORT=3000

service postgresql start
service redis-server start
service varnish start

cd /Windshaft-cartodb
node app.js development &

cd /CartoDB-SQL-API
node app.js development &

cd /cartodb
script/restore_redis
bundle exec script/resque &
bundle exec rails s -p $PORT


#!/bin/bash

PORT=3000

service postgresql start
service redis-server start
service varnish start

cd /Windshaft-cartodb
node app.js development &

cd /CartoDB-SQL-API
node app.js development &

cd /cartodb
source /usr/local/rvm/scripts/rvm
bundle exec script/restore_redis
bundle exec script/resque &
bundle exec rails s -p $PORT


Initialize rvm before running bundle.
Initialize rvm before running bundle.

Dockerfile CMD is run in non-interactive shell, so /etc/bash.bashrc is not sourced.
