We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6dbd529 commit 899195bCopy full SHA for 899195b
server.js
@@ -50,5 +50,16 @@ if (process.env.NODE_ENV !== 'DEV') {
50
}
51
52
console.log(gradient('red', 'yellow', 'green', 'blue')('-='.repeat(40)))
53
+
54
+// Check that we have valid information in the .env file
55
+if (!process.env.SVGDIR) {
56
+ console.log()
57
+ console.log(gradient('red', 'orange', 'yellow')('ERROR: Missing SVGDIR in .env file'))
58
+ console.log('Please copy over the .env.example file to .env and fill in the required information')
59
60
+ console.log(gradient('red', 'yellow', 'green', 'blue')('-='.repeat(40)))
61
+ process.exit(1)
62
+}
63
64
console.log('Listening on port: %s', process.env.PORT)
65
http.createServer(app).listen(process.env.PORT)
0 commit comments