Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
DIGIPUS
Commits
2e42d5e3
Commit
2e42d5e3
authored
Oct 23, 2020
by
Farhan Azyumardhi Azmi
☕
Browse files
[CHORES] Tidy up README
parent
907195ab
Pipeline
#59443
passed with stages
in 12 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
2e42d5e3
...
...
@@ -10,6 +10,7 @@
-
[
Description
](
#description
)
-
[
Initial Setup
](
#initial-setup
)
-
[
Running Development Environment
](
#running-development-environment
)
-
[
Running Development Environment with Docker Compose
](
#running-development-environment-with-docker-compose
)
-
[
Contributors
](
#contributors
)
## Description
...
...
@@ -118,7 +119,7 @@ python3 manage.py loaddata */fixtures/initial.json
Requires
[
Docker
](
https://docs.docker.com/get-docker/
)
and
[
Docker Compose
](
https://docs.docker.com/compose/install/
)
.
If you have already created a
`.env`
file, adjust its content to:
```
```
bash
SECRET_KEY
=
place-your-secret-key-here
IS_LOCAL
=
True
DB_NAME
=
marjinal
...
...
@@ -129,44 +130,44 @@ DB_PORT=5432
```
Create a
`.env.db`
file, fill its content with:
```
```
bash
POSTGRES_USER
=
postgres
POSTGRES_PASSWORD
=
postgres
POSTGRES_DB
=
marjinal
```
To build and run the containers:
```
```
bash
docker-compose up
-d
--build
```
To run the containers without rebuilding them first:
```
```
bash
docker-compose up
-d
```
To stop the containers:
```
```
bash
docker-compose down
```
To run any command related to the DIGIPUS container:
```
```
bash
docker-compose
exec
digipus <
command
>
```
For example, to migrate the database:
```
```
bash
docker-compose
exec
digipus python manage.py migrate
```
To run any command related to the database container:
```
```
bash
docker-compose
exec
db <
command
>
```
For example, to run
`psql`
:
```
```
bash
docker-compose
exec
db psql
-U
postgres
```
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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