Permalink
Browse files

add deploying stuff

  • Loading branch information...
1 parent ae45d42 commit 57a9f50fdd30524eeda46287276dc436149cac82 @finom finom committed Aug 5, 2016
Showing with 32 additions and 0 deletions.
  1. +19 −0 .travis.yml
  2. BIN deploy_rsa.enc
  3. +13 −0 ecosystem.json
View
@@ -0,0 +1,19 @@
+language: node_js
+node_js:
+- '6'
+before_install:
+- openssl aes-256-cbc -K $encrypted_2c4c9a008ff2_key -iv $encrypted_2c4c9a008ff2_iv
+ -in deploy_rsa.enc -out deploy_rsa -d
+addons:
+ ssh_known_hosts: 192.241.157.86
+before_deploy:
+- npm install -g pm2
+- eval "$(ssh-agent -s)"
+- chmod 600 $TRAVIS_BUILD_DIR/deploy_rsa
+- ssh-add $TRAVIS_BUILD_DIR/deploy_rsa
+deploy:
+ provider: script
+ skip_cleanup: true
+ script: npm run deploy
+ on:
+ branch: next
View
Binary file not shown.
View
@@ -0,0 +1,13 @@
+{
+ "deploy" : {
+ "production" : {
+ "user" : "deployer",
+ "host" : "192.241.157.86",
+ "ref" : "origin/next",
+ "repo" : "git@github.com:circlecell/jsonlintdotcom.git",
+ "path" : "/var/web/jsonlint.com",
+ "ssh_options": ["StrictHostKeyChecking=no", "PasswordAuthentication=no"],
+ "post-deploy" : "rm -rf node_modules; npm install; npm run bundle"
+ },
+ }
+}

0 comments on commit 57a9f50

Please sign in to comment.