Skip to content

Commit

Permalink
Merge pull request #27 from ariebrainware/master
Browse files Browse the repository at this point in the history
Minor Update: Refactoring
  • Loading branch information
ariebrainware authored Jul 2, 2019
2 parents 0d4d4e3 + 53c4760 commit 168e7ff
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ database/
devnote
.env
.rar
package-lock.json
package-lock.json
.travis/deploy_rsa.pub
.travis/deploy_rsa
26 changes: 13 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
language: node_js
node:
- 10.15.1
nvm:
- 6.9.0
addons:
ssh_known_hosts:
- igather.sytes.net:1118
nvm:
- 6.9.0
node:
- 10.15.1
before_install:
- openssl aes-256-cbc -K $encrypted_61557196f501_key -iv $encrypted_61557196f501_iv
-in id_rsa.enc -out ~\/.ssh/id_rsa -d
- "<openssl line generated by travis encrypt>"
- eval "$(ssh-agent -s)"
- cp .travis/id_rsa ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-add ~/.ssh/id_rsa
- openssl aes-256-cbc -K $encrypted_90b980805ab1_key -iv $encrypted_90b980805ab1_iv
-in .travis/deploy_rsa.enc -out .travis/deploy_rsa -d
- eval "$(ssh-agent -s)"
- cp .travis/deploy_rsa ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-add ~/.ssh/id_rsa
install:
- npm install
- npm install
script:
- npm test
- npm test
deploy:
provider: script
skip_cleanup: true
script: ".travis/deploy.sh"
app: connecc-api
run: npm start
on:
Expand Down
6 changes: 6 additions & 0 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
git config --global push.default simple # we only want to push one branch — master
# specify the repo on the live server as a remote repo, and name it 'production'
# <user> here is the separate user you created for deploying
git remote add production ssh://[email protected]:1118/home/brainware/projects/connecc-api
git push production master # push our updates
Binary file added .travis/deploy_rsa.enc
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Request body example:
```json
{
"name": "Alpha",
"phoneNumber": "+62-8-1993-101010",
"phoneNumber": "+62-8-1234-56789",
"email": "[email protected]",
"address": "Alphabet Inc, USA"
}
Expand Down
Binary file removed id_rsa.enc
Binary file not shown.

0 comments on commit 168e7ff

Please sign in to comment.