Created
March 28, 2012 14:04
-
-
Save shu0115/2226448 to your computer and use it in GitHub Desktop.
Fast Deploy
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 Deploy For Cedar | |
git add . && git commit -m "update" | |
git push heroku master | |
heroku run rake db:migrate | |
heroku logs -t | |
heroku open | |
◆GitHub Deploy | |
git add . && git commit -m "update" --author "shu0115" | |
git push origin master | |
---------- | |
◆Herokuアドオン確認 | |
heroku addons -h | |
----- | |
Usage: heroku addons | |
list installed addons | |
Additional commands, type "heroku help COMMAND" for more details: | |
addons:add ADDON # addons:add ADDON | |
addons:downgrade ADDON # addons:downgrade ADDON | |
addons:list # addons:list | |
addons:open ADDON # addons:open ADDON | |
addons:remove ADDON # addons:remove ADDON | |
addons:upgrade ADDON # addons:upgrade ADDON | |
----- | |
------------------------------ | |
------------------------------ | |
------------------------------ | |
------------------------------ | |
------------------------------ | |
[ assets削除 ] | |
rm -rf public/assets/ | |
git rm -r public/assets/ | |
git add . && git commit -m "update" --author "shu0115" | |
git push origin master | |
---------- | |
[ SHORT ] | |
git add . && git commit -m "update" --author "shu0115" | |
git push origin master | |
git push heroku master | |
---------- | |
[ SHORT_2 ] | |
git add . && git commit -m "update" --author "shu0115" | |
git push origin master | |
---------- | |
[ FULL ] | |
rake assets:precompile RAILS_ENV=production | |
git add . && git commit -m "assets precompile" --author "shu0115" | |
git push heroku master | |
heroku rake db:migrate | |
heroku logs -t | |
heroku open | |
rm -rf public/assets/ | |
git rm -r public/assets/ | |
git add . && git commit -m "delete public/assets" --author "shu0115" | |
git push origin master | |
---------- | |
[ COMMIT ] | |
git add . && git commit | |
---------- | |
[bundle] | |
bundle install --without production | |
bundle install --without production test | |
---------- | |
[ Migration ] | |
rake db:rollback | |
rake db:rollback STEP=1 | |
--- | |
rake db:migrate | |
---------- | |
[ CSS ] | |
/* テーブル */ | |
table, tr, th, td { | |
border: 1px solid #aaa; | |
padding: 5px; | |
border-collapse: collapse; | |
border-spacing: 0px; | |
} | |
.search table, .search tr, .search td { | |
border: 0px solid #aaa; | |
padding: 0px; | |
} | |
th { | |
white-space: nowrap; | |
} | |
---------- | |
[ Gem Rebild ] | |
git add . && git commit -m "update" | |
rake build | |
gem uninstall omniauth-scaffold | |
gem install -l pkg/omniauth-scaffold-0.1.0.gem | |
gem install -l pkg/omniauth-scaffold-0.1.7.gem | |
cd ~/labo | |
rails new sample03 | |
cd sample03 | |
vi Gemfile | |
--- | |
shift+G => $ => a | |
----- | |
gem 'omniauth-scaffold' | |
gem 'omniauth-twitter' | |
----- | |
bundle install | |
rails g omniauth:scaffold | |
----- | |
git add . && git commit -m "update" | |
rake build | |
gem uninstall omniauth-scaffold | |
gem install -l pkg/omniauth-scaffold-0.1.7.gem | |
bundle update | |
rails destroy omniauth:scaffold | |
rails g omniauth:scaffold | |
---------- | |
[ Gem Update Release ] | |
git add . && git commit -m "update" | |
rake version:bump:patch | |
rake release | |
gem uninstall omniauth-scaffold | |
bundle update | |
rails destroy omniauth:scaffold | |
rails g omniauth:scaffold | |
---------- | |
◆author/email変更 | |
git filter-branch -f --commit-filter ' | |
GIT_AUTHOR_NAME="shu0115" | |
GIT_AUTHOR_EMAIL="raisondetre0115@gmail.com" | |
GIT_COMMITTER_NAME="shu0115" | |
GIT_COMMITTER_EMAIL="raisondetre0115@gmail.com" | |
git commit-tree "$@" | |
' HEAD | |
----- | |
git push -f | |
---------- | |
◆Herokuリモートリポジトリ追加 | |
g rt add heroku git@heroku.com:loooper.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment