Skip to content

Commit

Permalink
Update node and dependencies
Browse files Browse the repository at this point in the history
Minor changes in README
  • Loading branch information
connorhsm committed Nov 24, 2022
1 parent 22884a9 commit 2e9bd7c
Show file tree
Hide file tree
Showing 4 changed files with 4,860 additions and 433 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.15-alpine
FROM node:18.12-alpine

WORKDIR /app

Expand Down
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,20 @@ When **DEV_TOKEN** is set, **PROD_TOKEN** will not be checked to prevent deployi

### Command cheat sheet

Build Docker container
Build Docker container, leave pushing to the workflow for proper tagging
`docker build . --tag ghcr.io/twohoursonelife/junior`

Run latest dev image
`docker run --name=junior-dev --detach --env DEV_TOKEN=thetoken ghcr.io/twohoursonelife/junior-dev:latest`
`docker run --detach --env DEV_TOKEN=thetoken ghcr.io/twohoursonelife/junior`

Deploy commands
`export DEV/PROD_TOKEN=thetoken`
`export GUILDID=id` (Defaults to dev token if unset)
`export CLIENTID=id` (Defaults to dev token if unset)
`node deploy-commands.js`
GUILDID and CLIENTID defaults to dev token if unset
```bash
export DEV/PROD_TOKEN=
export GUILDID=
export CLIENTID=
node deploy-commands.js
```

Webhook
`webhook -hooks /var/webhook/hooks.json -verbose -port 9000 -hotreload`
Expand Down
Loading

0 comments on commit 2e9bd7c

Please sign in to comment.