- 1.1 First setup the
ENV
variables under Environment
- 1.2 Authorize the project specific Codeship ssh key on the server. (under General)
phpenv local 7.2
cd ~/clone/src
composer install --prefer-dist --no-interaction
# Build assets, create fingerprinted assets
nvm install 10.9.0
nvm use 10.9.0
cd ~/clone/src/web/app/themes/exampletheme
npm install
npm run build
npm run rev
# Deploy
rsync -av -e 'ssh -p 22' --delete --progress --exclude '.git' ~/clone/src/config/ $CI_USER@$CI_HOST:$CI_CONFIGPATH
rsync -av -e 'ssh -p 22' --delete --progress --exclude '.git' ~/clone/src/vendor/ $CI_USER@$CI_HOST:$CI_VENDORPATH
rsync -av -e 'ssh -p 22' --delete --progress --exclude '.git' ~/clone/src/web/wp/ $CI_USER@$CI_HOST:$CI_WPPATH
rsync -avz --delete --progress --exclude '.git' --exclude 'node_modules' --exclude 'uploads' ~/clone/src/web/app/ $CI_USER@$CI_HOST:$CI_APPPATH