Sha256: dd5585e47fd35c1aca73382a5ba9f610df83d15d742c18243ad8962de53fd5b7

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

# Heroku Deployment
The generator has created the necessary files and gems for deployment to Heroku. If you have installed manually, you will need to provide these files yourself:

+ `Procfile`: used by Heroku and Foreman to start the server
+ `.buildpacks`: used to install Ruby and Node environments
+ `12factor` gem: required by Heroku
+ `lib/tasks/assets.rake`: rake task that generates your JavaScript bundles for production.

## How to Deploy

React on Rails requires both a ruby environment (for Rails) and a Node environment (for Webpack), so you will need to have Heroku use multiple buildpacks. Currently, we would suggest using [DDollar's Heroku Buildpack Multi](https://github.com/ddollar/heroku-buildpack-multi).

Assuming you have downloaded and installed the Heroku command-line utility and have initialized the app, you will need to tell Heroku to use Heroku Buildpack Multi via the command-line:

```
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-multi
```

Heroku will now be able to use the multiple buildpacks specified in `.buildpacks`. 

Note, an alternative approach is to use the [Heroku Toolbelt to set buildpacks](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
react_on_rails-1.0.2 docs/additional_reading/heroku_deployment.md