Browse Source

add version to ping endpoint, tweak README

pull/1/head 1.0.0
Trent Larson 8 months ago
parent
commit
e878665943
  1. 8
      README.md
  2. 2
      server.js

8
README.md

@ -13,7 +13,7 @@ mkdir uploads
pnpm run migrate
```
Now set up an AWS S3 bucket & Infura project, and manually set these variables inside a .env file:
Now set up an S3 bucket & Infura project, and create a .env file from .env.sample with these important settings:
```
AWS_ACCESS_KEY=
AWS_SECRET_KEY=
@ -22,8 +22,6 @@ AWS_REGION=
INFURA_PROJECT_ID=
```
If you use a domain with a web redirect, use a permanent redirect (since browsers complained with PR_END_OF_FILE_ERROR about a secure connection when it's temporary).
## dev
```
@ -45,9 +43,9 @@ JWT=`node -e "$CODE"`; curl -X DELETE -H "Authorization: Bearer $JWT" http://loc
* In object storage, set up bucket and erase any test data.
* In DNS, set a permanent web forward to the correct storage location.
* In haproxy, set a permanent web forward to the correct storage location.
## deploy to prod subsequent times
* Add CHANGELOG.md entry.
* Add CHANGELOG.md entry. Update version in server.js file.

2
server.js

@ -54,7 +54,7 @@ const uploadDir = 'uploads';
const uploadMulter = multer({ dest: uploadDir + '/' });
app.get('/ping', async (req, res) => {
res.send('pong');
res.send('pong v1.0.0');
});
app.get('/image-limits', async (req, res) => {

Loading…
Cancel
Save