@@ -34,10 +34,6 @@ gem 'em-http-request' |
||
| 34 | 34 |
|
| 35 | 35 |
gem 'unicorn' |
| 36 | 36 |
|
| 37 |
-# If you want to use the Backup gem for backups, uncomment these lines: |
|
| 38 |
-# gem 'backup', :require => false |
|
| 39 |
-# gem 'fog', '~> 1.4.0', :require => false |
|
| 40 |
- |
|
| 41 | 37 |
group :development do |
| 42 | 38 |
gem 'capistrano' |
| 43 | 39 |
gem 'capistrano-unicorn', :require => false |
@@ -108,7 +108,7 @@ We assume your deployment will run over SSL. This is a very good idea! However, |
||
| 108 | 108 |
|
| 109 | 109 |
#### Setup Backups |
| 110 | 110 |
|
| 111 |
-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. |
|
| 111 |
+Checkout `config/example_backup.rb` for an example script that you can use with the Backup gem. |
|
| 112 | 112 |
|
| 113 | 113 |
## License |
| 114 | 114 |
|
@@ -29,4 +29,4 @@ production: |
||
| 29 | 29 |
pool: 5 |
| 30 | 30 |
username: root |
| 31 | 31 |
password: password |
| 32 |
- socket: <%= ["/var/run/mysqld/mysqld.sock", "/opt/local/var/run/mysql5/mysqld.sock", "/tmp/mysql.sock"].find{ |path| File.exist? path } %>
|
|
| 32 |
+ socket: /var/run/mysqld/mysqld.sock |
@@ -1,13 +1,15 @@ |
||
| 1 | 1 |
# This file contains an example template for using the Backup gem for backing up your Huginn installation to S3. |
| 2 | 2 |
|
| 3 | 3 |
# In your crontab do something like: |
| 4 |
-# 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 |
|
| 4 |
+# 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 |
|
| 5 | 5 |
|
| 6 | 6 |
# In backups.password on your server: |
| 7 | 7 |
# some password |
| 8 | 8 |
|
| 9 | 9 |
# In huginn_backup.rb on your server put an edited version of the following file. REMEMBER TO EDIT THE FILE! |
| 10 | 10 |
|
| 11 |
+# You'll also need to install the backup gem on your server, as well as the net-ssh, excon, net-scp, and fog gems. |
|
| 12 |
+ |
|
| 11 | 13 |
database_yml = '/home/you/app/current/config/database.yml' |
| 12 | 14 |
rails_env = ENV['RAILS_ENV'] || 'production' |
| 13 | 15 |
|