Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ BETYdb provides an interface for contributing and accessing data, and is the inf
To get started with BETY you can use the docker-compose.yml file included. This will start the database (postgresql with postgis version 9.5) as well as the BETY container. If this is the first time you start it you will need to initialize the database, this can be done using the following commands:

```
docker-compose -p bety up -d postgres
docker compose -p bety up -d postgres
docker run --rm --network bety_bety pecan/db
```

If you want to change the id of the database, you can use:

```
docker-compose run -e LOCAL_SERVER=77 bety fix
docker compose run -e LOCAL_SERVER=77 bety fix
```

To add initial users you can use the following commands (this will add the guestuser as well as the carya demo user)

```
docker-compose run bety user 'guestuser' 'guestuser' 'Guest User' '[email protected]' 4 4
docker-compose run bety user 'carya' 'illinois' 'Demo User' '[email protected]' 1 1
docker compose run bety user 'guestuser' 'guestuser' 'Guest User' '[email protected]' 4 4
docker compose run bety user 'carya' 'illinois' 'Demo User' '[email protected]' 1 1
```

Once bety finishes inializing the database, or to restart BETY, you can bring up the all the containers using:

```
docker-compose -p bety up -d
docker compose -p bety up -d
```

To change the path BETY runs under you can change the path using the environment variable RAILS_RELATIVE_URL_ROOT, for example to just run bety you can use the following command. This will precompile any of the static assets and run BETY.
Expand Down