diff --git a/.editorconfig b/.editorconfig index 9dc6a71..60837ab 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,6 @@ insert_final_newline = true [*.md] trim_trailing_whitespace = false + +[LICENSE] +insert_final_newline = false diff --git a/lolisafe.js b/lolisafe.js index c6e2352..ef44c75 100644 --- a/lolisafe.js +++ b/lolisafe.js @@ -52,8 +52,8 @@ for (let page of config.pages) { } } -safe.use((req, res, next) => res.status(404).sendFile('404.html', { root: './pages/error/' })) -safe.use((req, res, next) => res.status(500).sendFile('500.html', { root: './pages/error/' })) +// safe.use((req, res, next) => res.status(404).sendFile('404.html', { root: './pages/error/' })) +// safe.use((req, res, next) => res.status(500).sendFile('500.html', { root: './pages/error/' })) safe.listen(config.port, () => console.log(`lolisafe started on port ${config.port}`)) diff --git a/package.json b/package.json index 555bef2..4e5a81d 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,10 @@ "node": ">=7.0.0" }, "license": "MIT", + "scripts": { + "start": "node ./lolisafe.js", + "pm2": "pm2 start --name lolisafe ./lolisafe.js " + }, "dependencies": { "bcrypt": "^1.0.3", "body-parser": "^1.18.2", diff --git a/pages/album.html b/pages/album.html index 74d3335..faa9296 100644 --- a/pages/album.html +++ b/pages/album.html @@ -30,12 +30,12 @@