Note: You need to have to Heroku PGBackup addon first heroku addons:add pgbackups..
Creates the backup on heroku first:
heroku pg:backups capture| # ... | |
| gem 'carrierwave' | |
| gem 'fog', '~> 1.0.0' # Need to specify version, as carrierwave references older (0.9.0) which doesn't allow configuration of Rackspace UK Auth URL |
rpm -i http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
yum -y install postgresql92-server postgresql92-contrib postgresql92-devel
yum -y install postgresql-devel # this is for gem pg
service postgresql-9.2 initdb
chkconfig postgresql-9.2 on
service postgresql-9.2 restartThis guide setup Apache2/Passenger/Ruby/Rails on a CentOS 6.4 LiveCD.
You can test it yourself using VirtualBox to run all the scripts - read VirtualBox.md for more info.
# install the necessary libraries
yum clean all
yum -y update
yum -y install curl-devel git sqlite-devel libxml2-devel
yum -y install libxml2 libxml2-devel libxslt libxslt-devel
yum -y install gcc-c++ readline-devel libyaml-devel libffi-devel openssl-devel libtool bisonSetup a WYSIWYG editor with CKEditor. Includes instruction for Rails_Admin
gem 'ckeditor' to your Gemfile and bundlerake db:migrate//= require ckeditor/override in your application.js (before require_tree .)To configure the editor to be used in Rails_Admin, follow this https://github.com/sferik/rails_admin/wiki/CKEditor
This gem makes creating cron jobs very easy!
whenever -w to write out the crontabcrontab -l to see the list of cron jobs you haveset :output, {:standard => 'log/cron.log'} #logs to your log file to viewOffical documentation: https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md
gem 'factory_girl_rails'spec/spec_helper.rb for easier calling of FactoryGirl methods