Skip to content

Commit

Permalink
The Backup gem doesn't work well when used inside of Bundler.
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Mar 15, 2013
1 parent 062e7c7 commit 2d119f2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion config/example_backup.rb
Original file line number Diff line number Diff line change
@@ -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'

Expand Down

0 comments on commit 2d119f2

Please sign in to comment.