Last active
August 29, 2015 14:10
-
-
Save ppworks/b4d28febac0343566162 to your computer and use it in GitHub Desktop.
railsでもbowerでasset管理しつつherokuにもdeployする方法 ref: http://qiita.com/ppworks/items/9c0e58e5ebe3f1f439eb
This file contains hidden or 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
$ brew upgrade node |
This file contains hidden or 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
$ vim Gemfile |
This file contains hidden or 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
$ vim app.json |
This file contains hidden or 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": "https://github.com/ppworks/furikaeri", | |
"scripts": { | |
"postdeploy": "bundle exec rake db:migrate && bundle exec rake db:seed" | |
+ }, | |
+ "env": { | |
+ "BUILDPACK_URL": "https://github.com/heroku/heroku-buildpack-multi.git" | |
} | |
} |
This file contains hidden or 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
gem 'jbuilder', '~> 2.0' | |
gem 'enumerize' | |
gem 'factory_girl_rails' | |
+gem 'bower-rails' | |
group :development, :test do | |
gem 'spring' |
This file contains hidden or 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 bower_rails:initialize |
This file contains hidden or 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
$ vim Bowerfile |
This file contains hidden or 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
asset 'reset-css' | |
asset 'jquery-ujs' | |
asset 'jquery-ui' | |
asset 'components-font-awesome' |
This file contains hidden or 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 bower:install |
This file contains hidden or 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 BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-multi.git |
This file contains hidden or 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
$ vim .buildpacks |
This file contains hidden or 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": "https://github.com/ppworks/furikaeri", | |
"scripts": { | |
"postdeploy": "bundle exec rake db:migrate && bundle exec rake db:seed" | |
+ }, | |
+ "env": { | |
+ "BUILDPACK_URL": "https://github.com/ddollar/heroku-buildpack-multi.git" | |
} | |
} |
This file contains hidden or 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
https://github.com/heroku/heroku-buildpack-nodejs | |
https://github.com/heroku/heroku-buildpack-ruby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment