PHP code example of onedesign / atomic-deploy
1. Go to this page and download the library: Download onedesign/atomic-deploy library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
onedesign / atomic-deploy example snippets
curl -sS https://raw.githubusercontent.com/onedesign/atomic-deployments/master/atomic-deploy.php | php -- --revision=${execution.to_revision.revision} --symlinks='{"shared/config/.env.php":".env.php","shared/storage":"craft/storage"}'
--symlinks='{"shared/config/.env.php":".env.php","shared/logs":"logs"}'
rm -rf revisions/<revision_id>/.env.php \
&& ln -sfn <deploy-dir>/shared/config/.env.php revisions/<revision>/.env.php
rm -rf revisions/<revision_id>/logs \
&& ln -sfn <deploy-dir>/shared/logs revisions/<revision>/logs