From cbb47f09f4ada5e57d4b2e0813480c57dfb0ddbc Mon Sep 17 00:00:00 2001 From: chrissyast Date: Tue, 4 Feb 2020 18:48:54 +0000 Subject: [PATCH] implement frontend dir workaround https://github.com/heroku/heroku-buildpack-nodejs/issues/385#issuecomment-291084067 --- Procfile | 2 +- package.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 package.json diff --git a/Procfile b/Procfile index 50848a7..46e9432 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1,2 @@ backend: bundle exec puma -C config/puma.rb -web: cd front && node server.js \ No newline at end of file +web: npm start --prefix front \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..6d50d2b --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "name": "draw", + "version": "1.0.0", + "scripts": { + "postinstall": "npm install --prefix front" + } +}