Last active
April 20, 2017 00:50
-
-
Save hone/99cc2f9707519a76498684e88e44a3ff to your computer and use it in GitHub Desktop.
Revisions
-
hone revised this gist
Apr 20, 2017 . 1 changed file with 2 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,16 +5,10 @@ You'll need a heroku app to deploy to if you don't have one already. $ heroku create ``` With that, we can deploy. On Heroku, we'll need to setup the Rust toolchain and we can do that by using [this Rust Buildpack](https://github.com/hone/heroku-buildpack-rust). Then add the buildpack to the first position. ``` $ heroku buildpacks:add https://github.com/honek/heroku-buildpack-rust --index 1 ``` Next, we'll need the Heroku Ruby buildpack to do the normal Ruby bits, if it's not already set. -
hone created this gist
Apr 19, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ # Helix Deployment on Heroku You'll need a heroku app to deploy to if you don't have one already. ``` $ heroku create ``` With that, we can deploy. On Heroku, we'll need to setup the Rust toolchain and we can do that by using [this Rust Buildpack](https://github.com/emk/heroku-buildpack-rust). We don't want the Rust tools to run since that will happen in the `assets:precompile` rake task defined by [`helix-rails`](https://github.com/tildeio/helix-rails). We can tell the rust buildpack to do this, by writing out `RustConfig` at root of the application. ``` RUST_SKIP_BUILD=1 ``` Then add the buildpack to the first position. ``` $ heroku buildpacks:add https://github.com/emk/heroku-buildpack-rust --index 1 ``` Next, we'll need the Heroku Ruby buildpack to do the normal Ruby bits, if it's not already set. ``` $ heroku buildpacks:add heroku/ruby ``` Finally deploy: ``` $ git push heroku master ```