Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from hectcastro/added-gemfile

Added a Gemfile to manage dependencies
  • Loading branch information...
commit 0087d9e11928fe6b9d0618140f2cc918b98c8010 2 parents 4e89400 + ce9f1e5
@jbritten authored
Showing with 12 additions and 4 deletions.
  1. +1 −0  .gitignore
  2. +4 −0 Gemfile
  3. +7 −4 wordpress.rake
View
1  .gitignore
@@ -0,0 +1 @@
+Gemfile.lock
View
4 Gemfile
@@ -0,0 +1,4 @@
+source :rubygems
+
+gem "rake"
+gem "aws-s3"
View
11 wordpress.rake
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.