From 9b87f2706673e3097c09776d7a522f4600e4a361 Mon Sep 17 00:00:00 2001 From: Willy Ovalle Date: Tue, 18 Apr 2017 23:04:24 -0400 Subject: [PATCH 1/2] Feature: adding sandbox deployment in circle.yml --- circle.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/circle.yml b/circle.yml index e9472b4..5fb2802 100644 --- a/circle.yml +++ b/circle.yml @@ -10,7 +10,14 @@ test: - git commit -m "build $(git rev-parse HEAD)" deployment: - staging: + production: branch: master commands: - - git push -f git@heroku.com:virtual-cards-server.git master:master \ No newline at end of file + - git push -f git@heroku.com:virtual-cards-server.git master:master + +deployment: + staging: + branch: sandbox + commands: + - git remote add dokku dokku@138.197.54.233:sandbox.api.wwmoderator.com + - git push dokku master \ No newline at end of file From 7618f457679ba2d47bd5f0dddc923b633bfaa467 Mon Sep 17 00:00:00 2001 From: Willy Ovalle Date: Tue, 18 Apr 2017 23:22:09 -0400 Subject: [PATCH 2/2] Feature: publishing server on docker --- circle.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/circle.yml b/circle.yml index 5fb2802..0478387 100644 --- a/circle.yml +++ b/circle.yml @@ -1,19 +1,13 @@ test: override: - - ls - post: - - npm run build - - git add build/ -f - - git config user.name "circleci" - - git config user.email "circleci@virtual-cards-server.com" - - git add -A - - git commit -m "build $(git rev-parse HEAD)" + - npm test deployment: production: branch: master commands: - - git push -f git@heroku.com:virtual-cards-server.git master:master + - git remote add dokku dokku@138.197.54.233:api + - git push dokku master deployment: staging: