docker-cartojw/startup.sh
Stefan Verhoeven 4b6693f2c7 Initialize rvm before running bundle.
Dockerfile CMD is run in non-interactive shell, so /etc/bash.bashrc is not sourced.
2015-02-13 14:59:26 +01:00

21 lines
332 B
Bash
Executable File

#!/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