3.0 KiB
How to Deploy Flow Framework
How to deploy a Flow Framework project with zero downtime?
- First, install the Deployer.
- Second, require
recipe/flow_framework.php
recipe into your deploy.php or deploy.yaml file. - Third, now you can have a zero downtime deployment!
Did you know that you can deploy Flow Framework project with a single command? Just execute dep deploy
.
Something went wrong? Just run dep rollback
to rollback your changes.
Also, you can take an advantage of the Deployer's CLI to deploy your project.
Another cool feature of the Deployer is provisioning. Take any server, and run dep provision
command.
This command will configure webserver, databases, php, ssl certificates, and more.
You will get everything you need to run your Flow Framework application.
Deployer does next steps to deploy Flow Framework:
- Displays info about deployment
- Prepares host for deploy
- Locks deploy
- Prepares release
- Updates code
- Creates symlinks for shared files and dirs
- Makes writable dirs
- Installs vendors
- Applies database migrations
- Publishes resources
- Creates symlink to release
- Unlocks deploy
- Cleanup old releases
The flow_framework recipe is based on the common recipe.
Configuration
flow_context
Flow-Framework application-context
'Production'
flow_command
Flow-Framework cli-command
'flow'
shared_dirs
Overrides shared_dirs from recipe/deploy/shared.php
.
Flow-Framework shared directories
[
'Data/Persistent',
'Data/Logs',
'Configuration/{{flow_context}}'
]
Tasks
deploy:run_migrations
Applies database migrations.
Apply database migrations
deploy:publish_resources
Publishes resources.
Publish resources
deploy
Deploys your project.
Main task
This task is group task which contains next tasks: