yosasou

Created: 2014-05-19 02:28
Updated: 2014-09-13 15:48

README.md

ヨサソウ

Setup for development

rename Guardfile.example to Guardfile

$ cp Guardfile.example Guardfile

External API Credential

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.

Start guard

$ guard

staging

heroku create yosasou-stg
git remote set-url yosasou-stg git@heroku.com:yosasou-stg.git
git push yosasou 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\[yosasou-stg\]

s3

create 'yosasou' bucket on 'us-east-1'

IAM

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": [
        "s3:ListBucket",
        "s3:GetBucket*"
      ],
      "Resource": [
        "arn:aws:s3:::yosasou"
      ],
      "Effect": "Allow"
    },
    {
      "Action": [
        "s3:DeleteObject*",
        "s3:GetObject*",
        "s3:PutObject*"
      ],
      "Resource": [
        "arn:aws:s3:::yosasou/*"
      ],
      "Effect": "Allow"
    }
  ]
}

Fill config/application.yml

AWS_ACCESS_KEY_ID: ''
AWS_SECRET_ACCESS_KEY: ''
AWS_REGION: 'us-east-1'
AWS_S3_BUCKET: 'yosasou'
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more