diff --git a/Procfile b/Procfile index a2e9c0e..9d5e7b7 100644 --- a/Procfile +++ b/Procfile @@ -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 diff --git a/Procfile.dev b/Procfile.dev new file mode 100644 index 0000000..a2e9c0e --- /dev/null +++ b/Procfile.dev @@ -0,0 +1,2 @@ +rails: rails server -p 3333 +webpack: ./bin/webpack-dev-server diff --git a/app.json b/app.json index f806380..99417a5 100644 --- a/app.json +++ b/app.json @@ -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" @@ -19,6 +18,7 @@ ], "buildpacks": [ - + { "url": "heroku/nodejs" }, + { "url": "heroku/ruby" } ] }