git grep -l 'module Appname'|xargs sed -i '' 's/Appname/Yourappname/g'
git grep -l 'appname'|xargs sed -i '' 's/appname/yourappname/g'
rename Guardfile.example to Guardfile
$ cp Guardfile.example Guardfile
cp config/application.yml.example config/application.yml
Fill in api credential
rake secret
Fill in SECRET_TOKEN by the key above result.
rake secret
Change devise's secret_token(config/initializers/devise.rb) by the key above result.
$ guard
heroku create appname
git remote rename heroku appname
git push appname master
heroku addons:add newrelic
heroku addons:add pgbackups:auto-month
heroku addons:add mandrill:starter
rake figaro:heroku\[appname\]
heroku create appname-stg
git remote set-url appname-stg git@heroku.com:appname-stg.git
git push appname master
heroku addons:add newrelic
heroku addons:add pgbackups:auto-month
heroku addons:add mandrill:starter
heroku addons:add mailtrap
heroku config:set RACK_ENV=staging RAILS_ENV=staging
rake figaro:heroku\[appname-stg\]
create 'appname' bucket on 'us-east-1'
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:ListBucket",
"s3:GetBucket*"
],
"Resource": [
"arn:aws:s3:::appname"
],
"Effect": "Allow"
},
{
"Action": [
"s3:DeleteObject*",
"s3:GetObject*",
"s3:PutObject*"
],
"Resource": [
"arn:aws:s3:::appname/*"
],
"Effect": "Allow"
}
]
}
Fill config/application.yml
AWS_ACCESS_KEY_ID: ''
AWS_SECRET_ACCESS_KEY: ''
AWS_REGION: 'us-east-1'
AWS_S3_BUCKET: 'appname'