Skip to content

Commit 168e7ff

Browse files
Merge pull request #27 from ariebrainware/master
Minor Update: Refactoring
2 parents 0d4d4e3 + 53c4760 commit 168e7ff

File tree

6 files changed

+23
-15
lines changed

6 files changed

+23
-15
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ database/
55
devnote
66
.env
77
.rar
8-
package-lock.json
8+
package-lock.json
9+
.travis/deploy_rsa.pub
10+
.travis/deploy_rsa

.travis.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
language: node_js
2+
node:
3+
- 10.15.1
4+
nvm:
5+
- 6.9.0
26
addons:
37
ssh_known_hosts:
48
- igather.sytes.net:1118
5-
nvm:
6-
- 6.9.0
7-
node:
8-
- 10.15.1
99
before_install:
10-
- openssl aes-256-cbc -K $encrypted_61557196f501_key -iv $encrypted_61557196f501_iv
11-
-in id_rsa.enc -out ~\/.ssh/id_rsa -d
12-
- "<openssl line generated by travis encrypt>"
13-
- eval "$(ssh-agent -s)"
14-
- cp .travis/id_rsa ~/.ssh/id_rsa
15-
- chmod 600 ~/.ssh/id_rsa
16-
- ssh-add ~/.ssh/id_rsa
10+
- openssl aes-256-cbc -K $encrypted_90b980805ab1_key -iv $encrypted_90b980805ab1_iv
11+
-in .travis/deploy_rsa.enc -out .travis/deploy_rsa -d
12+
- eval "$(ssh-agent -s)"
13+
- cp .travis/deploy_rsa ~/.ssh/id_rsa
14+
- chmod 600 ~/.ssh/id_rsa
15+
- ssh-add ~/.ssh/id_rsa
1716
install:
18-
- npm install
17+
- npm install
1918
script:
20-
- npm test
19+
- npm test
2120
deploy:
2221
provider: script
2322
skip_cleanup: true
23+
script: ".travis/deploy.sh"
2424
app: connecc-api
2525
run: npm start
2626
on:

.travis/deploy.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
git config --global push.default simple # we only want to push one branch — master
3+
# specify the repo on the live server as a remote repo, and name it 'production'
4+
# <user> here is the separate user you created for deploying
5+
git remote add production ssh://brainware@igather.sytes.net:1118/home/brainware/projects/connecc-api
6+
git push production master # push our updates

.travis/deploy_rsa.enc

3.17 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Request body example:
123123
```json
124124
{
125125
"name": "Alpha",
126-
"phoneNumber": "+62-8-1993-101010",
126+
"phoneNumber": "+62-8-1234-56789",
127127
"email": "alpha@alphabet.com",
128128
"address": "Alphabet Inc, USA"
129129
}

id_rsa.enc

-3.17 KB
Binary file not shown.

0 commit comments

Comments
 (0)