Skip to content

Commit ffa2e90

Browse files
author
Ariadne Engelbrecht
committed
Update shell script and readme.
1 parent 9bb0b08 commit ffa2e90

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

week_11__final-project/spelling_bee/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ The game is played as follows:
2626
- [Configuration](#configuration)
2727
- [Run the app](#run-the-app)
2828
- [Run the app via Docker](#run-the-app-via-docker)
29-
- [Installation](#installation-1)
3029
- [Configuration](#configuration-1)
30+
- [Installation](#installation-1)
3131
- [Run the app](#run-the-app-1)
3232

3333
## Run the app locally
@@ -45,7 +45,7 @@ pip install -r requirements.txt
4545
To install the database, you need to run the following commands in your terminal:
4646

4747
```bash
48-
wget "https://www.dropbox.com/s/tiqdlgzbo40ak8g/dictionary.db" -O dictionary.db
48+
wget "https://dl.dropboxusercontent.com/s/ooctnlclt9bdmeu/dictionary.db" -O dictionary.db
4949
```
5050

5151
### Configuration
@@ -70,14 +70,6 @@ You can now access the app on `http://127.0.0.1:8000/`.
7070

7171
## Run the app via docker
7272

73-
### Installation
74-
75-
Run the following command in your terminal to build the container:
76-
77-
```bash
78-
docker build -t spelling-bee .
79-
```
80-
8173
### Configuration
8274

8375
In `app.py`, set the variable `is_local` to `False`.
@@ -86,6 +78,14 @@ In `app.py`, set the variable `is_local` to `False`.
8678
is_local = False
8779
```
8880

81+
### Installation
82+
83+
Run the following command in your terminal to build the container:
84+
85+
```bash
86+
docker build -t spelling-bee .
87+
```
88+
8989
### Run the app
9090

9191
Run the following command in your terminal to run the container:
@@ -96,4 +96,4 @@ docker run -p 8000:8000 -v "$(pwd)/data:/data" spelling-bee
9696

9797
The `$(pwd)/data:/data` part in the docker run command is used to mount the data directory to the /data directory inside the Docker container. This allows the container to access the dictionary.db.
9898

99-
You can now access the app on `http://127.0.0.1:8000/`.
99+
You can now access the app on `http://127.0.0.1:8000/`.

week_11__final-project/spelling_bee/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export PATH_TO_DATABASE="/data/dictionary.db"
55

66
if [[ ! -f /data/dictionary.db ]]; then
77
echo "Couldn't find dictionary"
8-
curl "https://www.dropbox.com/s/ooctnlclt9bdmeu/dictionary.db" -o dictionary.db
8+
curl "https://dl.dropboxusercontent.com/s/ooctnlclt9bdmeu/dictionary.db" -o dictionary.db
99
mv dictionary.db /data/
1010
chmod 777 /data/dictionary.db
1111
chown -R appuser:appuser /data

0 commit comments

Comments
 (0)