small refactor
This commit is contained in:
parent
39f6fe49d1
commit
72aeed411a
2 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ laseca is a social bitcoin to cash exchange, implemented as a webapp.
|
|||
+ `node` and `npm`
|
||||
* Installing
|
||||
+ Run `npm install`
|
||||
+ You can now start the app in a container by running `npm run start:containers` (and shut it down with `npm run stop:containers`).
|
||||
+ You can now start the app in a container by running `npm run start:container` (and shut it down with `npm run stop:container`).
|
||||
* Running
|
||||
+ The app will run in a single container, with a Postgres database, a caddy webserver and the nodejs app.
|
||||
+ Note that the container doesn't come with a volume for Postgres: default behaviour is to start from scratch every time you create the container, delete everything every time you delete the container.
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
"main": "src/app.js",
|
||||
"scripts": {
|
||||
"start": "node src/app.js",
|
||||
"start:containers": "docker compose up -d --build",
|
||||
"stop:containers": "docker compose down",
|
||||
"start:container": "docker compose up -d --build",
|
||||
"stop:container": "docker compose down",
|
||||
"cli": "node src/cli.js",
|
||||
"test": "playwright test",
|
||||
"lint": "eslint . --fix",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue