Permalink
Browse files

Fix schedule (crontab) and added instructions for proper RVM setup.

Fixes crontab generation and eliminates warnings from bash.
  • Loading branch information...
1 parent dce3631 commit f0928c8d4d4792f6934046f6af18d26a788228df @seven1m seven1m committed Mar 19, 2011
Showing with 10 additions and 2 deletions.
  1. +1 −1 INSTALL.md
  2. +2 −0 README.md
  3. +5 −1 config/schedule.rb
  4. +2 −0 doc/INSTALL.CENTOS.md
View
2 INSTALL.md
@@ -38,7 +38,7 @@ For **Windows** workstations, grab the 1.8.7 RubyInstaller from [here](http://ru
Log out and back in for the changes to take effect. Typing `type rvm | head -n1` should display
"rvm is a function".
-See http://rvm.beginrescueend.com/rvm/install/ for more detailed instructions.
+**See http://rvm.beginrescueend.com/rvm/install/ and make sure your .bashrc doesn't exit near the top.**
_Be sure to configure your firewall to allow access to your SSH server from your workstation._
View
2 README.md
@@ -20,6 +20,8 @@ If you're dedicated server or VPS is Ubuntu 10.04 or higher, try this:
gem install capistrano
# edit config/deploy.rb to point to your server
cap prepare:ubuntu
+ # follow http://rvm.beginrescueend.com/rvm/install/
+ # to ensure .bashrc doesn't exit near the top
cap deploy:setup
cap deploy:migrations
View
6 config/schedule.rb
@@ -1,7 +1,11 @@
# Learn more about this file: http://github.com/javan/whenever
set :environment, 'production'
-set :job_template, "~/.rvm/bin/rvm-shell -c ':job'"
+
+# the default job_template uses the -i flag, which throws a warning about "no job control"
+# without the -i flag, you must ensure your .bashrc doesn't exit at the top due to being non-interactive
+# check out the troubleshooting section at http://rvm.beginrescueend.com/rvm/install/ for help
+set :job_template, "bash -l -c ':job'"
if File.exist?("#{Dir.pwd}/config/email.yml")
every 1.minute do
View
2 doc/INSTALL.CENTOS.md
@@ -35,6 +35,8 @@ Otherwise, it's just:
gem install capistrano
# edit config/deploy.rb to point to your server
cap prepare:centos
+ # follow http://rvm.beginrescueend.com/rvm/install/
+ # to ensure .bashrc doesn't exit near the top
cap deploy:setup
cap deploy:migrations

0 comments on commit f0928c8

Please sign in to comment.