SanketR
SanketR

Reputation: 1192

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?

Upvotes: 1

Views: 818

Answers (3)

svikramjeet
svikramjeet

Reputation: 1945

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

Upvotes: 1

Dwight
Dwight

Reputation: 12460

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

Upvotes: 0

Samsquanch
Samsquanch

Reputation: 9146

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

Upvotes: 1

Related Questions