Permalink
Browse files

The Backup gem doesn't work well when used inside of Bundler.

  • Loading branch information...
1 parent 062e7c7 commit 2d119f2ecdd8ca4251348b2efd6f532e77059607 @cantino cantino committed Mar 15, 2013
Showing with 5 additions and 7 deletions.
  1. +0 −4 Gemfile
  2. +1 −1 README.md
  3. +1 −1 config/database.yml
  4. +3 −1 config/example_backup.rb
View
@@ -34,10 +34,6 @@ gem 'em-http-request'
gem 'unicorn'
-# If you want to use the Backup gem for backups, uncomment these lines:
-# gem 'backup', :require => false
-# gem 'fog', '~> 1.4.0', :require => false
-
group :development do
gem 'capistrano'
gem 'capistrano-unicorn', :require => false
View
@@ -108,7 +108,7 @@ We assume your deployment will run over SSL. This is a very good idea! However,
#### Setup Backups
-Checkout `config/example_backup.rb` for an example script that you can use with the Backup gem. If you want to use it, uncomment the associated lines in your Gemfile.
+Checkout `config/example_backup.rb` for an example script that you can use with the Backup gem.
## License
View
@@ -29,4 +29,4 @@ production:
pool: 5
username: root
password: password
- socket: <%= ["/var/run/mysqld/mysqld.sock", "/opt/local/var/run/mysql5/mysqld.sock", "/tmp/mysql.sock"].find{ |path| File.exist? path } %>
+ socket: /var/run/mysqld/mysqld.sock
View
@@ -1,13 +1,15 @@
# This file contains an example template for using the Backup gem for backing up your Huginn installation to S3.
# In your crontab do something like:
-# 0 0,12 * * * /bin/bash -l -c "cd /home/you/app/current && RAILS_ENV=production bundle exec backup perform -t huginn_backup --config_file /home/you/huginn_backup.rb" 2>&1 >> /home/you/huginn_backup_log.txt
+# 0 0,12 * * * /bin/bash -l -c "RAILS_ENV=production backup perform -t huginn_backup --config_file /home/you/huginn_backup.rb" 2>&1 >> /home/you/huginn_backup_log.txt
# In backups.password on your server:
# some password
# In huginn_backup.rb on your server put an edited version of the following file. REMEMBER TO EDIT THE FILE!
+# You'll also need to install the backup gem on your server, as well as the net-ssh, excon, net-scp, and fog gems.
+
database_yml = '/home/you/app/current/config/database.yml'
rails_env = ENV['RAILS_ENV'] || 'production'

0 comments on commit 2d119f2

Please sign in to comment.