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
Functional Programming
Diskuy-Frontend
Commits
d739d853
Commit
d739d853
authored
Feb 21, 2021
by
Muhammad Rafif Elfazri
Browse files
Merge branch 'deploy' into 'master'
Update some files deploy template See merge request
!27
parents
78acdb5e
d751b956
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d739d853
...
...
@@ -27,7 +27,7 @@ Untuk menjalankan aplikasi pada local server, perlu dilakukan langkah-langkah di
```
shell
location /api/
{
proxy_pass
'http://
app
:4000/api/'
;
proxy_pass
'http://
diskuy-backend
:4000/api/'
;
}
```
...
...
@@ -48,7 +48,7 @@ Untuk menjalankan aplikasi pada local server, perlu dilakukan langkah-langkah di
5.
Build image dengan perintah berikut.
```
shell
docker build
--build-arg
REACT_APP_CLIENT_ID
=
17380499766-td9qokkgpli952576g7d8l2059a7pgbf.apps.googleusercontent.com
-t
diskuy
_
frontend .
docker build
--build-arg
REACT_APP_CLIENT_ID
=
<GOOGLE_OAUTH_CLIENT_ID>
-t
diskuy
-
frontend .
```
opsi
```--build-arg```
adalah opsi untuk memasukkan environment variable saat Build image.
...
...
docker-compose.yml
View file @
d739d853
...
...
@@ -3,7 +3,7 @@ version: '3.7'
services
:
diskuy_frontend
:
container_name
:
diskuy
_
frontend
container_name
:
diskuy
-
frontend
build
:
context
:
.
dockerfile
:
Dockerfile
...
...
nginx/default.conf
View file @
d739d853
...
...
@@ -20,6 +20,6 @@ server {
}
location
/
api
/ {
proxy_pass
'http://
app
:4000/api/'
;
proxy_pass
'http://
diskuy-backend
:4000/api/'
;
}
}
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