Skip to content

Commit

Permalink
Update startup commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzl committed Jul 16, 2024
1 parent 7427020 commit 40baa18
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,27 @@ To start it:

```shell
pipenv shell
./src/manage.py tailwind install
./src/manage.py check --deploy
./src/manage.py migrate
./src/manage.py tailwind build
./src/manage.py collectstatic
./src/manage.py runserver
```

## Development

Install dev dependencies:
```shell
pipenv shell

pipenv install -d --ignore-pipfile
```

Install npm. E.g.:
```shell
sudo apt install nodejs npm
pipenv shell
./src/manage.py tailwind install
```

Run Django Dev Server
Expand Down
2 changes: 1 addition & 1 deletion docker/prestart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
set -e

./manage.py check --deploy
./manage.py tailwind build
./manage.py collectstatic --no-input
./manage.py migrate
./manage.py tailwind build
1 change: 0 additions & 1 deletion src/vinywaji/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
ALLOWED_METRICS_NETS = [
ip_network(i) for i in env.list("VW_ALLOWED_METRICS_NETS", default=["127.0.0.0/8", "::/64"])
]
NPM_BIN_PATH = "/usr/bin/npm"

DATABASES = {"default": env.dj_db_url("VW_DB")}
CACHES = {"default": env.dj_cache_url("VW_CACHE", default="dummy://" if DEBUG else "locmem://")}
Expand Down

0 comments on commit 40baa18

Please sign in to comment.