Created
March 29, 2013 09:49
-
-
Save haman29/5269922 to your computer and use it in GitHub Desktop.
herokuで静的ファイルをホスティングする ref: http://qiita.com/items/08aa434dc5a7bf4f4cb5
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
# Login | |
$ heroku login | |
# Create Application (アプリ名は適当に付ける) | |
$ heroku create static-app-name | |
# Clone ruby config files | |
$ cd ~/repository/ | |
$ git clone git://github.com/machida/kuroigamen-sandbox.git | |
# Copy ruby config files | |
$ cd kuroigamen-sandbox/ | |
$ cp -r * ~/git-repository-dir/ | |
# Add & Commit & Push | |
$ cd ~/git-repository-dir/ | |
$ git add . | |
$ git ci -am "Add files for heroku deploy" | |
# Deploy to heroku | |
$ git push heroku master | |
$ cd public/ | |
# Check | |
$ heroku open |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment