Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
OSSD
2020
Kompeni
Jitsi No Jutsu Backend
Commits
6095e178
Commit
6095e178
authored
Oct 26, 2020
by
Fijar Lazuardy
Browse files
Merge branch 'staging' into 'main'
Staging See merge request
!1
parents
e7d6afc7
efd2cfcf
Changes
3
Show whitespace changes
Inline
Side-by-side
.env.production
View file @
6095e178
URL = http://jitsi-kompeni.cs.ui.ac.id
\ No newline at end of file
URL = https://staging-meet.fijar-lazuardy.xyz
.gitlab-ci.yml
View file @
6095e178
image
:
node:latest
stages
:
-
build
-
test
cache
:
paths
:
-
node_modules/
install_dependencies
:
stage
:
build
deploy-staging
:
stage
:
deploy
only
:
-
staging
before_script
:
-
apt-get update -qq
-
apt-get install -qq git
-
'
which
ssh-agent
||
(
apt-get
install
-qq
openssh-client
)'
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
-
mkdir -p ~/.ssh
-
'
[[
-f
/.dockerenv
]]
&&
echo
-e
"Host
*\n\tStrictHostKeyChecking
no\n\n"
>
~/.ssh/config'
script
:
-
npm install
artifacts
:
paths
:
-
node_modules/
testing_testing
:
stage
:
test
script
:
npm test
\ No newline at end of file
-
ssh $SSH_USER@$SSH_IP "cd jitsi-no-jutsu-backend && git pull origin staging"
-
ssh $SSH_USER@$SSH_IP "cd jitsi-no-jutsu-backend && docker-compose down"
-
ssh $SSH_USER@$SSH_IP "cd jitsi-no-jutsu-backend && docker-compose up --build -d"
# - ssh $SSH_USER@$SSH_IP "docker-compose up --build -d"
#- ssh $SSH_USER@$SSH_IP "docker run -d jitsi-no-jutsu-backend"
Dockerfile
View file @
6095e178
...
...
@@ -16,4 +16,4 @@ RUN npm install
COPY
. .
EXPOSE
8080
CMD
[ "npm", "start" ]
\ No newline at end of file
CMD
[ "npm", "run","start:prod" ]
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment