Permalink
Browse files

Merge pull request #1 from hectcastro/added-gemfile

Added a Gemfile to manage dependencies
  • Loading branch information...
2 parents 4e89400 + ce9f1e5 commit 0087d9e11928fe6b9d0618140f2cc918b98c8010 @jbritten committed Jan 22, 2012
Showing with 12 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +4 −0 Gemfile
  3. +7 −4 wordpress.rake
View
@@ -0,0 +1 @@
+Gemfile.lock
View
@@ -0,0 +1,4 @@
+source :rubygems
+
+gem "rake"
+gem "aws-s3"
View
@@ -16,19 +16,22 @@
#
# Prerequisites
#
-# 1. You'll need to install the aws-s3 gem.
-# $ sudo gem install aws-s3
+# 1. You'll need to install the dependencies.
+#
+# $ gem install bundler
+# $ bundle install
#
# 2. Specify your database credentials, site path, and Amazon S3 access keys below.
#
# Execution
#
-# $ rake -f wordpress.rake wordpress:backup
+# $ bundle exec rake -f wordpress.rake wordpress:backup
#
# Automation
#
# Put this in your crontab to run nightly backups at 3am:
-# 0 3 * * * rake -f /PATH/TO/wordpress.rake wordpress:backup
+#
+# 0 3 * * * /bin/bash -l -c 'cd /PATH/TO && PATHTOSITE="/apps/cool" bundle exec rake -f wordpress.rake wordpress:backup'
#
require 'rubygems'

0 comments on commit 0087d9e

Please sign in to comment.