mirror of
https://github.com/rmaake1/httpstatuses.git
synced 2024-10-04 15:17:23 +02:00
Deploys project with CircleCI
This commit is contained in:
parent
8ba438311e
commit
df66eea663
14
circle.yml
Normal file
14
circle.yml
Normal file
@ -0,0 +1,14 @@
|
||||
machine:
|
||||
node:
|
||||
version: 4.1.0
|
||||
|
||||
dependencies:
|
||||
post:
|
||||
- bower install
|
||||
- node build
|
||||
|
||||
deployment:
|
||||
production:
|
||||
branch: metalsmith
|
||||
commands:
|
||||
- ./deploy.sh
|
7
deploy.sh
Normal file
7
deploy.sh
Normal file
@ -0,0 +1,7 @@
|
||||
build="build-${CIRCLE_BUILD_NUM}"
|
||||
sudo mkdir ~/${build}
|
||||
sudo cp -R ~/httpstatus.es/build/. ~/${build}
|
||||
echo "Deploying ${build} to ${DEPLOY_TARGET}"
|
||||
rsync -r -l ~/${build} ${DEPLOY_TARGET}:/srv/www/httpstatus.es
|
||||
ssh ${DEPLOY_TARGET} "ln -sfn /srv/www/httpstatus.es/${build} /srv/www/httpstatus.es/live"
|
||||
echo "Build deployed and pushed live"
|
Loading…
Reference in New Issue
Block a user