From b60932b6c597e48aea5d5df83fefa02f1bcb5fb8 Mon Sep 17 00:00:00 2001 From: shibafu Date: Fri, 13 Nov 2020 23:39:42 +0900 Subject: [PATCH] add config for heroku --- Procfile | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..48aab52 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: vendor/bin/heroku-php-apache2 public/ diff --git a/package.json b/package.json index 214a50e..e8ceca3 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", "eslint": "eslint --ext .js,.ts,.tsx resources/", "stylelint": "stylelint resources/assets/sass/**/*", - "doc": "redoc-cli bundle -o public/apidoc.html openapi.yaml" + "doc": "redoc-cli bundle -o public/apidoc.html openapi.yaml", + "heroku-postbuild": "npm run production && npm run doc" }, "devDependencies": { "@types/bootstrap": "^4.5.0",