Recipe for usage with Deployer. It includes tasks specific for SumoCoders.
composer require sumocoders/deployer-sumo-forkcms --dev
Include recipes in deploy.php
file.
require __DIR__ . '/vendor/sumocoders/deployer-sumo-forkcms/sumo.php';
Build your project's assets using Webpack.
Creates a database on our dev server. This task can will only run on the host with the stage "staging".
It will output the credentials.
This task will output the credentials of the existing database on the dev server. This task can will only run on the host with the stage "staging".
Creates a database on your local MySQL instance.
Run this task to replace your local database with the remote database. Be aware that no backup will be made.
Use this command to replace the remote database with your local database.
This is an aggregate task, it will run all the following tasks:
- sumo:db:create-local
- sumo:db:get
- sumo:config:get
- sumo:config:alter
- sumo:files:get
- sumo:assets:fix-node-version
- sumo:assets:npm-install
- sumo:assets:build
It can be used to locally set up a project that is already on the staging or production server.
Run this task to replace your local files with the remote files. Be aware that no backup will be made.
Run this task to replace the remote files with your local files. Be aware that no backup will be made.
Notify our webhooks on a deploy. This task is automatically added into the flow.
Enable a redirect page, all traffic will be redirected to this page.
Creates the needed symlinks to link the document root to the correct folder.
Clears opcache and statcache using a file strategy.
Removes all files that are not needed on the server. (docker-compose.yml, UPGRADE.md, etc.)
Licensed under the MIT license.