forked from mirrors/bookwyrm
Update README.md
This commit is contained in:
parent
d4f8f2e276
commit
007ccb22fd
1 changed files with 1 additions and 29 deletions
30
README.md
30
README.md
|
@ -60,8 +60,6 @@ cp .env.example .env
|
|||
|
||||
For most testing, you'll want to use ngrok. Remember to set the DOMAIN in `.env` to your ngrok domain.
|
||||
|
||||
|
||||
#### With Docker
|
||||
You'll have to install the Docker and docker-compose. When you're ready, run:
|
||||
|
||||
```bash
|
||||
|
@ -70,33 +68,7 @@ docker-compose run --rm web python manage.py migrate
|
|||
docker-compose run --rm web python manage.py initdb
|
||||
```
|
||||
|
||||
### Without Docker
|
||||
You will need postgres installed and running on your computer.
|
||||
|
||||
``` bash
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
createdb bookwyrm
|
||||
```
|
||||
|
||||
Create the psql user in `psql bookwyrm`:
|
||||
``` psql
|
||||
CREATE ROLE bookwyrm WITH LOGIN PASSWORD 'bookwyrm';
|
||||
GRANT ALL PRIVILEGES ON DATABASE bookwyrm TO bookwyrm;
|
||||
```
|
||||
|
||||
Initialize the database (or, more specifically, delete the existing database, run migrations, and start fresh):
|
||||
``` bash
|
||||
./rebuilddb.sh
|
||||
```
|
||||
This creates two users, `mouse` with password `password123` and `rat` with password `ratword`.
|
||||
|
||||
The application uses Celery and Redis for task management, which must also be installed and configured.
|
||||
|
||||
And go to the app at `localhost:8000`
|
||||
|
||||
|
||||
Once the build is complete, you can access the instance at `localhost:1333`
|
||||
|
||||
## Installing in Production
|
||||
|
||||
|
|
Loading…
Reference in a new issue