From 4b6693f2c7e93aca4f14c649aff87befbe6af699 Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Fri, 13 Feb 2015 14:59:26 +0100 Subject: [PATCH] Initialize rvm before running bundle. Dockerfile CMD is run in non-interactive shell, so /etc/bash.bashrc is not sourced. --- startup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/startup.sh b/startup.sh index 91558d7..430feb0 100755 --- a/startup.sh +++ b/startup.sh @@ -13,7 +13,8 @@ cd /CartoDB-SQL-API node app.js development & cd /cartodb -script/restore_redis +source /usr/local/rvm/scripts/rvm +bundle exec script/restore_redis bundle exec script/resque & bundle exec rails s -p $PORT