add config for heroku

This commit is contained in:
shibafu 2020-11-13 23:39:42 +09:00
parent 28520007e4
commit b60932b6c5
2 changed files with 3 additions and 1 deletions

1
Procfile Normal file
View File

@ -0,0 +1 @@
web: vendor/bin/heroku-php-apache2 public/

View File

@ -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",