Skip to content

Commit fd6fa57

Browse files
committed
fixup#: launch day stuff
1 parent d92cd68 commit fd6fa57

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

app.js

+2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ app.use(function(err, req, res, next) {
2929
res.locals.message = err.message;
3030
res.locals.error = err;
3131
if (req.app.get('env') !== 'development')
32+
{
3233
res.locals.error.stack = null;
34+
}
3335

3436
// render the error page
3537
res.status(err.status || 500);

docker-compose.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
version: '3'
1+
version: '3.8'
22
services:
33
app:
44
container_name: go.resonite.com
55
build: .
66
ports:
7-
- "3000:3000"
7+
- "3002:3000"
8+
expose:
9+
- "3000"
810
volumes:
911
- .:/usr/src/app
10-
- /usr/src/app/node_modules
12+
- /usr/src/app/node_modules
13+
environment:
14+
- NODE_ENV=production

routes/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ function getUrl(type, req) {
2323

2424
async function createResoniteApiError(res, type) {
2525
if (res.status === 404) {
26-
return createError(res.status, `Couldn't find ${type}`);
26+
return createError(res.status, `We couldn't find this ${type}.\n
27+
Check your link is valid, and that the session is still open and publicly viewable.`);
2728
}
2829

2930
var text = await res.text();

0 commit comments

Comments
 (0)