CS-Cart and Multi-Vendor deployment toolkit for developers and system administrators. Current version is 1.0.1.
git clone https://github.com/simtechdev/deploy-toolkit.git
cd deploy-toolkit
mkdir -p deploy-toolkit/deploy
- Specify default settings in
config.yml
- release_name: 4.3.8
- project_path: /local/path/to/project/cscart
- servers config
- Run
dep prepare development
to create a ZIP archive for development environment - Run
dep deploy development
to deploy code to the server.
This function used for create zip archive release from project directory to local ./deploy
directory.
Function use command line argument to define environment.
- create zip archive of project.
This function can be used for deploy full code and full database. Follow steps are applied:
- remove all files in to
{{deploy_path}}
- restore archive
release-{{release_name}}.zip
from local./deploy
directory - restore dump
release-{{release_name}}.sql.gz
from local./deploy
directory - clear cache
This function can be used for deploy part of code and small changes in database. Follow steps are applied:
- restore archive
release-{{release_name}}.zip
from local./deploy
directory. - run
phinx migrate
on server. - clear cache.
Delete all files and directories from deploy directory, exclude vendor
directory.
Check ssh connection and create deploy directory
Upload zipped code of project on server to deploy directory and unzip it.
Clear CS-Cart cache.
Restore mysql dump from local archive from ./deploy/release-{{release_name}}.sql.gz
.
Run php ./vendor/bin/phinx migrate
on server.
Prepare phinx.yml config file and upload it to server.
For more documentation see Deployer docs and deploy.php source code.
MIT