Skip to content

Instantly share code, notes, and snippets.

@hone
Last active April 20, 2017 00:50
Show Gist options
  • Select an option

  • Save hone/99cc2f9707519a76498684e88e44a3ff to your computer and use it in GitHub Desktop.

Select an option

Save hone/99cc2f9707519a76498684e88e44a3ff to your computer and use it in GitHub Desktop.

Revisions

  1. hone revised this gist Apr 20, 2017. 1 changed file with 2 additions and 8 deletions.
    10 changes: 2 additions & 8 deletions helix_deployment.md
    Original 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/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.
    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.

    ```
    RUST_SKIP_BUILD=1
    ```

    Then add the buildpack to the first position.

    ```
    $ heroku buildpacks:add https://github.com/emk/heroku-buildpack-rust --index 1
    $ 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.
  2. hone created this gist Apr 19, 2017.
    30 changes: 30 additions & 0 deletions helix_deployment.md
    Original 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
    ```