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:
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:on
和heroku 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.