Skip to content

Commit

Permalink
Add 'nodejs' buildback (Ref: rails/webpacker#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishaltelangre committed Nov 30, 2017
1 parent c0698cc commit 8a9f617
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rails: rails server -p 3333
webpack: ./bin/webpack-dev-server
release: bin/rails db:migrate; NODE_ENV=production bin/rails webpacker:compile
web: bin/rails server -p $PORT -e $RAILS_ENV
2 changes: 2 additions & 0 deletions Procfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rails: rails server -p 3333
webpack: ./bin/webpack-dev-server
6 changes: 3 additions & 3 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"name": "elmsanity",
"description": "",
"scripts": {
"postdeploy": "cp config/database.yml.postgresql config/database.yml; bundle exec rails db:create; bundle exec rails db:migrate; NODE_ENV=production bundle exec rails webpacker:compile"
},
},
"env": {
"SECRET_KEY_BASE": {
"generator": "secret"
Expand All @@ -19,6 +18,7 @@

],
"buildpacks": [

{ "url": "heroku/nodejs" },
{ "url": "heroku/ruby" }
]
}

0 comments on commit 8a9f617

Please sign in to comment.