1
votes

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?

3

3 Answers

1
votes

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

1
votes

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

0
votes

Another solution to this problem is to use heroku maintenance:on and heroku maintenance:off which use Heroku's maintenance mode instead.