Skip to content

Commit 24ef57a

Browse files
committed
update setup documentation
1 parent 6c7cb5d commit 24ef57a

2 files changed

Lines changed: 27 additions & 8 deletions

File tree

.env.example

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
DISCORD_CLIENT_ID = # Oauth Client ID
22
DISCORD_CLIENT_SECRET # Oauth client secret
3-
ENV = # Production or development
4-
REQUEST_TOKEN = # Authorization Token
5-
PORT = # port to host webserver own
6-
DB_USERNAME = # Postgresql Username
7-
DB_PASSWORD = # Postgresql Password
8-
DB_HOST = # Database host IP
9-
DB_NAME = # Database name
3+
ENV = # production or development
4+
REQUEST_TOKEN = # Brawl stars API Authorization Token
5+
PORT = # port to host the website own
6+
DB_USERNAME = # Postgres Username
7+
DB_PASSWORD = # Postgres Password
8+
DB_HOST = # Postgres database host IP
9+
DB_NAME = # Postgres database name

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
11
# sharpbit.dev
2-
A python sanic [website](https://sharpbit.dev/) that I made
2+
A [website](https://sharpbit.dev/) made with Python and Sanic. It uses Bootstrap in the front-end.
3+
4+
### Deployment
5+
#### Running without Docker
6+
1. Populate the `.env` file with the necessary information as outlined in `.env.example`.
7+
2. Install the requirements by running `pip install -r requirements.txt`.
8+
3. Run the server with `python run.py`. The server should be up and running at `localhost:PORT`.
9+
10+
#### Deploy with Docker
11+
1. Populate the `.env` file with the necessary information as outlined in `.env.example`.
12+
2. Build and start the container in detached mode using `docker-compose up -d`.
13+
3. Optionally, check the docker container list using `docker ps`.
14+
15+
#### Update with changes
16+
1. Update the local repo with `git pull`.
17+
2. Restart the container with `docker restart <container_id>`.
18+
3. Optionally, check the logs with `docker logs <container_id>`.
19+
20+
#### Kill the server
21+
1. Run `docker kill <container_id>`.

0 commit comments

Comments
 (0)