简体   繁体   中英

Laravel 5.5 on Heroku - php artisan down doesn't seem to work

I have recently deployed my Laravel 5.5 app on heroku. Everything works fine, except for the maintenance mode. The command php artisan down doesn't seem to work on heroku which works fine on my local machine. Any ideas?

The down command writes a file into the <storagepath>/framework folder named down . Make sure that's writeable.

Make sure your storage folder have sufficient permission so try following steps:

  1. Download Heroku CLI from https://devcenter.heroku.com/articles/heroku-cli
  2. Login to heroku with heroku login command
  3. Try heroku run php artisan down --app appname

You can directly make maintenance on mode on heroku that is visiting https://dashboard.heroku.com/apps/appname/settings

解决此问题的另一种方法是使用heroku maintenance:onheroku maintenance:off ,它们改用Heroku的维护模式。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM