Skip to content

Instantly share code, notes, and snippets.

@haman29
Created March 29, 2013 09:49
Show Gist options
  • Save haman29/5269922 to your computer and use it in GitHub Desktop.
Save haman29/5269922 to your computer and use it in GitHub Desktop.
herokuで静的ファイルをホスティングする ref: http://qiita.com/items/08aa434dc5a7bf4f4cb5
# 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