Answer the question
In order to leave comments, you need to log in
How to properly deploy an application on Laravel using Git?
Good day. There is an application written in laravel located on dev.machine. I use GIT as a hard currency, and the remote repository is located on bitbucket.org.
In .gitignore I have:
*.env
storage\
vendor\
output\
ReflectionException in Container.php line 779:
Class encrypter does not exist
Answer the question
In order to leave comments, you need to log in
I am using mine .
Here is my config/deploy.rb .
The workflow is:
- commit and push all changes to bitbucket
- execute mina deploy
- ...
- PROFIT
it is better to install the composer from the lock file via composer insatall, without update, so that the versions match, otherwise you never know in new regressions.
because If you don't have .env on the server then you don't have a key for encrypter. you need to create a .env file and run
php artisan key:generate
and set the webserver write permissions to storage and bootstrap/cache
laravel.com/docs/5.1#installation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question