Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

guezandy's avatar

Laravel 5 doesn't deploy on Forge

First time I try to use forge.

I see a lot of post from people using Laravel 4.2 but none on laravel 5 problems.

Steps: 1.I created a fresh Laravel 5 project (using composer) 2.Did not change a single thing on any file and uploaded it to github. 3.And followed the procedure to upload the project on a forge (digital ocean) server. 4.Deployed it! It all seemed to work but when I ping the ip on the browser I get: "Whoops, looks like something went wrong."

Is there anything special I have to do to get this working? Environment variables? (maybe, that seemed to be a fix in 4.2)

0 likes
10 replies
fraserk's avatar

On Forge go the the Environment tab and temporarily add a variable name "APP_DEBUG" set to "true". That will allow you to view the error that's preventing the page from displaying, instead of the whoops error page. That would atleast give us a clue on what's happening.

eukaryoter's avatar

First of all, did you create your environment variables on Forge?

mstnorris's avatar
Level 55

Did you set the APP_KEY environment variable (as well as all the others that you're currently using that you'll find in your .env file)?

guezandy's avatar

hey @fraserk that worked!

Not sure if this should be in a different post but my error is:

RuntimeException in compiled.php line 6911: No supported encrypter found. The cipher and / or key length are invalid.

Any ideas?

and @eukaryoter NO. my only environment variable on forge is APP_DEBUG that @fraserk told me to use.
Which variables should i add?

guezandy's avatar

@mstnorris so I should but all the variables in my .env file as environment variables on forge?

mstnorris's avatar

@guezandy Yep. Everything you're using currently, add those as Environment Variables (Forge essentially creates the equivalent on its end ensuring that your sensitive data is kept out of VC).

Polar_Bear's avatar

You need to add a 32 bit (character length) key in the config file or as environment variable (APP_KEY).

Please or to participate in this conversation.