File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11DISCORD_CLIENT_ID = # Oauth Client ID
22DISCORD_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
Original file line number Diff line number Diff line change 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> ` .
You can’t perform that action at this time.
0 commit comments