Created
July 13, 2013 11:09
-
-
Save shu0115/5990350 to your computer and use it in GitHub Desktop.
Ruby 2.0.0-p247 + Rails 4.0.0 + minimum-omniauth-scaffold ref: http://qiita.com/shu_0115/items/6f5f0c210e9999da66be
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
belem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -v | |
---------- | |
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0] | |
---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails g minimum:omniauth:scaffold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat config/settings.local.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://raw.github.com/gist/2253296/newrelic.yml > config/newrelic.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat config/newrelic.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi config/settings.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# アプリケーション名 | |
app_name: "Belem" | |
# プログラマTwitterID | |
programmer_twitter_id: "my_twitter_id" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake db:migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake haml:replace_erbs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake haml:convert_erbs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails s puma | |
---------- | |
=> Booting Puma | |
=> Rails 4.0.0 application starting in development on http://0.0.0.0:3000 | |
=> Run `rails server -h` for more startup options | |
=> Ctrl-C to shutdown server | |
Puma 2.3.2 starting... | |
* Min threads: 0, max threads: 16 | |
* Environment: development | |
* Listening on tcp://0.0.0.0:3000 | |
---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails -v | |
---------- | |
Rails 4.0.0 | |
---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Repository name | |
[ belem ] | |
Description (optional) | |
[ (description.) ] | |
※チェック無し:Initialize this repository with a README | |
Add .gitignore: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init && git add . && git commit -m "First commit" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP => SSH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote add origin git@github.com:MY_NAME/belem.git | |
git push -u origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku create belem | |
---------- | |
Creating belem... done, region is us | |
http://belem.herokuapp.com/ | git@heroku.com:belem.git | |
Git remote heroku added | |
---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git push heroku master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: * | |
[ Belem ] | |
Description: * | |
[ (description.) ] | |
WebSite: * | |
[ https://belem.herokuapp.com/ ] | |
Callback URL: | |
[ https://belem.herokuapp.com/ ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku config:set TWITTER_KEY=********** TWITTER_SECRET=****************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku config | grep "TWITTER" | |
----- | |
TWITTER_KEY: ********** | |
TWITTER_SECRET: ****************************** | |
----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku config:add TZ=Asia/Tokyo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/labo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku addons:add pgbackups:auto-month | |
heroku addons:add newrelic:standard | |
heroku addons:add scheduler:standard | |
heroku addons:add papertrail:choklad | |
heroku addons:add loggly:mole | |
heroku addons:add logentries:tryit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku addons | |
---------- | |
=== belem Configured Add-ons | |
heroku-postgresql:dev HEROKU_POSTGRESQL_CRIMSON | |
logentries:tryit | |
loggly:mole | |
newrelic:standard | |
papertrail:choklad | |
pgbackups:auto-month | |
scheduler:standard | |
---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku run rake db:migrate | |
---------- | |
Running `rake db:migrate` attached to terminal... up, run.9640 | |
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.6 | |
== CreateUsers: migrating ==================================================== | |
-- create_table(:users) | |
-> 0.0922s | |
== CreateUsers: migrated (0.0935s) =========================================== | |
---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku open |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat ~/.railsrc | |
---------- | |
--skip-bundle | |
--skip-test-unit | |
---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails new belem | |
---------- | |
Using --skip-bundle --skip-test-unit from /Users/shu/.railsrc | |
create | |
create README.rdoc | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app | |
create app/assets/javascripts/application.js | |
create app/assets/stylesheets/application.css | |
create app/controllers/application_controller.rb | |
create app/helpers/application_helper.rb | |
create app/views/layouts/application.html.erb | |
create app/assets/images/.keep | |
create app/mailers/.keep | |
create app/models/.keep | |
create app/controllers/concerns/.keep | |
create app/models/concerns/.keep | |
create bin | |
create bin/bundle | |
create bin/rails | |
create bin/rake | |
create config | |
create config/routes.rb | |
create config/application.rb | |
create config/environment.rb | |
create config/environments | |
create config/environments/development.rb | |
create config/environments/production.rb | |
create config/environments/test.rb | |
create config/initializers | |
create config/initializers/backtrace_silencers.rb | |
create config/initializers/filter_parameter_logging.rb | |
create config/initializers/inflections.rb | |
create config/initializers/mime_types.rb | |
create config/initializers/secret_token.rb | |
create config/initializers/session_store.rb | |
create config/initializers/wrap_parameters.rb | |
create config/locales | |
create config/locales/en.yml | |
create config/boot.rb | |
create config/database.yml | |
create db | |
create db/seeds.rb | |
create lib | |
create lib/tasks | |
create lib/tasks/.keep | |
create lib/assets | |
create lib/assets/.keep | |
create log | |
create log/.keep | |
create public | |
create public/404.html | |
create public/422.html | |
create public/500.html | |
create public/favicon.ico | |
create public/robots.txt | |
create tmp/cache | |
create tmp/cache/assets | |
create vendor/assets/javascripts | |
create vendor/assets/javascripts/.keep | |
create vendor/assets/stylesheets | |
create vendor/assets/stylesheets/.keep | |
---------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd belem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subl . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby '2.0.0' | |
gem 'haml-rails' | |
gem 'minimum-omniauth-scaffold' | |
gem 'action_args' | |
gem 'html5_validators' | |
gem 'puma' | |
gem 'kaminari' | |
gem 'rails_config' | |
gem 'tapp' | |
gem 'awesome_print' | |
gem "exception_notification", "~> 4.0.0.rc1" | |
gem 'i18n_generators' | |
group :development do | |
gem 'pry-rails' | |
gem "rails-erd" | |
gem 'binding_of_caller' | |
gem "erb2haml" | |
gem 'quiet_assets' | |
end | |
group :development, :test do | |
gem "sqlite3" | |
gem 'rspec-rails' | |
end | |
group :production do | |
gem 'rails_12factor' | |
gem 'pg' | |
gem 'newrelic_rpm' | |
end | |
# Use sqlite3 as the database for Active Record | |
#gem 'sqlite3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle install --without production | |
bundle update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment