Skip to content

Commit

Permalink
Set the new IP address.
Browse files Browse the repository at this point in the history
  • Loading branch information
mblayman committed Oct 8, 2024
1 parent 7b4bf6b commit dce03b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 41 deletions.
41 changes: 3 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,7 @@ An app for homeschool planning

### Python

Create a virtual environment.

```bash
$ python -m venv venv
```

Activate the virtual environment.

```bash
$ source venv/bin/activate
```

Install developer and application packages.

Note: `pygraphviz` requires `graphviz`
so you may need to install that first.
On homebrew on a Mac,
you can install that tool
with `brew install graphviz`.

PostgreSQL can be installed with `brew install postgresql`.

```bash
$ pip install -r requirements-dev.txt
$ pip install -r requirements.txt
```

I had some trouble getting pygraphviz to compile
and needed to include some library paths.
Here's what I needed locally.

```bash
CFLAGS="-I/opt/homebrew/Cellar/graphviz/5.0.0/include" \
LDFLAGS="-L/opt/homebrew/Cellar/graphviz/5.0.0/lib" \
pip install -r requirements-dev.txt -r requirements.txt
```
`uv` is required.

### JavaScript

Expand All @@ -64,13 +29,13 @@ Install [Heroku CLI tools](https://devcenter.heroku.com/articles/heroku-cli).
Bootstrap the local database.

```bash
$ ./manage.py migrate
$ uv run manage.py migrate
```

Create a superuser account.

```bash
$ ./manage.py createsuperuser
$ uv run manage.py createsuperuser
```

Start the local web server.
Expand Down
5 changes: 2 additions & 3 deletions config/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
service: homeschool
image: mblayman/homeschool

# FIXME: set IP address
servers:
web:
- 192.168.0.1
- 174.138.127.127
worker:
hosts:
- 192.168.0.1
- 174.138.127.127
cmd:
python /app/manage.py run_huey

Expand Down

0 comments on commit dce03b3

Please sign in to comment.