Recipe for usage with Deployer. It includes tasks specific for SumoCoders.
composer require tijsverkoyen/deployer-sumo --dev
Include recipes in deploy.php
file.
require __DIR__ . '/vendor/tijsverkoyen/deployer-sumo/sumo.php';
Build your project's assets by executing npm run build
locally.
If nvm
is detected nvm
will be used.
This task is executed after deploy:update_code
.
Runs npm install
locally
If nvm
is detected nvm
will be used.
Uploads public/build
to the stage.
This task is executed after sumo:assets:build
.
Alter the config file for local use.
Get the required config files from the host.
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.
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.
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".
Use this command to replace the remote database with your local database.
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.
This task is executed after deploy
.
Clears opcache and statcache using a file strategy.
This is an aggregate task, it will run all the following tasks:
sumo:config:get
sumo:config:alter
sumo:db:create-local
sumo:db:get
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.
Enable a redirect page, all traffic will be redirected to this page.
Create the SSL certificate for the staging url
**This will only work on our dev/staging server
This will only work on Cloudstar servers
If .crontab
exists in your project a symlink for ~/.crontab/XXX.crontab
to your file is
created.
After a short period the content of your .crontab
file will be used as crontab.
Creates the needed symlinks to link the document root to the correct folder.
This task is executed after deploy:symlink
.
Licensed under the MIT license.