What is the best way to deploy a symfony3 project? How to do it on clean ftp?
Googling, I came across Capifony, but according to the idea it does not work with the third version of symfony.
|
1 answer
1.Variant
Typical steps for deploying a Symfony application include:
- You can add your code to the server using some kind of
FTPFor example,FileZilla - Install your dependencies for vendor (usually done using
Composerand can be done before downloading). - Starting database migration or similar tasks for updating the data modification structure.
- Clearing the cache.
Deployment may also include other tasks, such as:
- Mark a specific version of your code as output to the source control repository
- Creating a temporary bridgehead for building update settings "offline - offline"
- Perform any tests available to ensure code and / or server stability
- Removing any unnecessary files from the
web/directoryto keep the production environment, that is, theenvironmentclean. - Clearing external cache systems (like
MemcachedorRedis).
Option 2
All this is done locally and then using Source Control ( Git , Tortoise ) to upload to the server.
3.Variant
There are also tools to help ease the "pain" of deployment. Some of them have been specifically adapted to the requirements of symfony.
http://symfony.com/doc/current/cookbook/deployment/tools.html#using-build-scripts-and-other-tools
|