You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit adc26b8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,30 +6,29 @@ Live application is available at https://hackorum.dev
6
6
7
7
## Development
8
8
9
-
Both Docker and Podman (rootless) are supported. The Makefile auto-detects which runtime is available (preferring Podman). Override with `ENGINE=docker` or `ENGINE=podman`.
9
+
Commands are run via [Task](https://taskfile.dev) (`task <name>`; run `task` with no arguments to list them). Both Docker and Podman (rootless) are supported. The Taskfile auto-detects which runtime is available (preferring Podman). Override with `ENGINE=docker` or `ENGINE=podman`.
10
10
11
11
1) Copy the sample env and adjust as needed:
12
12
```bash
13
13
cp .env.development.example .env.development
14
14
```
15
15
2) Build and start the stack (web + Postgres):
16
16
```bash
17
-
make dev
17
+
task dev
18
18
```
19
19
* App: http://localhost:3000
20
20
* Postgres: localhost:15432 (user/password: hackorum/hackorum by default)
21
21
* Emails sent by the application use `letter_opener`, will be opened by the browser automatically
22
22
* If you run into a Postgres data-dir warning, clear the old volume: `docker volume rm hackorum_db-data` (or `podman volume rm hackorum_db-data`)
23
23
24
24
Useful commands:
25
-
* Shell: `make shell`
26
-
* Rails console: `make console`
27
-
* Migrations/seeds: `make db-migrate` (or run arbitrary commands via `make shell`)
28
-
* Tests: `make test`
29
-
* Import a public DB dump: `make db-import DUMP=/path/to/public-YYYY-MM.sql.gz`
30
-
* If you need private table definitions too, apply `private-schema-YYYY-MM.sql.gz` after the import:
31
-
`gzip -cd /path/to/private-schema-YYYY-MM.sql.gz | make psql`
0 commit comments