Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Straight forward deployment of Ember on Semaphore CI
npm install ember-cli -g
npm install
bower install
ember build
ssh-keyscan >> ~/.ssh/known_hosts
tar -cvf tmp.tar.gz -C dist .
scp -r tmp.tar.gz
ssh "mkdir -p /var/www/versions/$REVISION && tar -xf /var/www/versions/tmp.tar.gz -C /var/www/versions/$REVISION/ && rm /var/www/versions/tmp.tar.gz && rm /var/www/current && ln -s /var/www/versions/$REVISION/ /var/www/current && ls -tr /var/www/leaply-ember/versions | head -n -3 | xargs rm -rf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment