git clone git@heroku.com:jkerncoins.git bundle install # Creates a new backup… # Stores and archives it in the repo… # Imports it into your development db… bundle exec rake backup:db:heroku
-
Never commit to upstream
-
Based off the github guide.
-
Get the base GoldenCMS code:
git clone git@github.com:macattack2k/GoldenCMS.git
-
Configure remotes:
git remote add upstream git@github.com:macattack2k/GoldenCMS.git
-
Create the project:
git remote add origin git@github.com:<your-name>/<project-name>.git git add . git commit -a -m “Initial Commit” git push origin master
-
Configure the user/password/database parameters to suit your project:
emacs config/database.yml
-
Configure the bucket parameter to point to your project bucket:
emacs config/initializers/s3.rb
-
Configure app specific information in th environment config file
emacs config/environment.rb
-
Create the database:
rake db:create rake db:migrate
-
That’s it:
rails s
-
Customize templates in app/views/layouts/
-
Create a Heroku Application. This command will create a heroku app with default url: ‘your-app-name.heroku.com’:
heroku create <your-app-name>
-
Configure the environment in heroku:
heroku config:add BUNDLE_WITHOUT=“development:test” heroku config:add S3_KEY=<your-s3-key> S3_SECRET=<your-s3-secret-key>
-
Add addons:
heroku addons:add memcache:5mb heroku addons:add newrelic:standard heroku addons:add pgbackups:basic heroku addons:add releases:basic
-
Create Database:
heroku rake db:migrate
-
Open browser to deploy:
heroku open
TODO
-
Note that we dont want to update model changes… this could be tricky
-
Heroku Deploy
-
Framework: Rails 3.0.7
-
DB: Posgrsql
NOTE: NOT USED!!! 'rails generate jquery:install #--ui to enable jQuery UI --version to install specific version'
Throughout important code there are ‘logger.debug _’ calls which log useful information to the log file, but only at log level: debug. To run the application in debug log level, simply call ‘rails s –debug’ and all such information will be printed to the log.
Debug logging format: See Error Logging
-
‘************* CACHE **************’
-
‘************* DB **************’
-
‘************* FILTER **************’
-
‘************* PARAMS **************’
-
‘************* CACHE **************’
-
‘************* CODE **************’
TODO