File tree Expand file tree Collapse file tree 6 files changed +23
-15
lines changed Expand file tree Collapse file tree 6 files changed +23
-15
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ database/
5
5
devnote
6
6
.env
7
7
.rar
8
- package-lock.json
8
+ package-lock.json
9
+ .travis /deploy_rsa.pub
10
+ .travis /deploy_rsa
Original file line number Diff line number Diff line change 1
1
language : node_js
2
+ node :
3
+ - 10.15.1
4
+ nvm :
5
+ - 6.9.0
2
6
addons :
3
7
ssh_known_hosts :
4
8
- igather.sytes.net:1118
5
- nvm :
6
- - 6.9.0
7
- node :
8
- - 10.15.1
9
9
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
17
16
install :
18
- - npm install
17
+ - npm install
19
18
script :
20
- - npm test
19
+ - npm test
21
20
deploy :
22
21
provider : script
23
22
skip_cleanup : true
23
+ script : " .travis/deploy.sh"
24
24
app : connecc-api
25
25
run : npm start
26
26
on :
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ Request body example:
123
123
``` json
124
124
{
125
125
"name" : " Alpha" ,
126
- "phoneNumber" : " +62-8-1993-101010 " ,
126
+ "phoneNumber" : " +62-8-1234-56789 " ,
127
127
"email" : " alpha@alphabet.com" ,
128
128
"address" : " Alphabet Inc, USA"
129
129
}
You can’t perform that action at this time.
0 commit comments