Skip to content
Snippets Groups Projects
Commit 405f22dd authored by Timothé Bailly-Barthez's avatar Timothé Bailly-Barthez
Browse files

fix

parent d097023d
Branches
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ app.use(server_session);
store.sync()
// Auth middleware
let redirect_uri = process.env.NODE_ENV === "development" ? 'http://localhost:3000/auth' : 'http://graphe_des_assos.cs-campus.fr';
let redirect_uri = process.env.NODE_ENV === "development" ? 'http://localhost:3000/auth' : 'https://graphe_des_assos.cs-campus.fr';
function auth (req, res, next) {
if (req.session
&& req.session.expires_at
......
......@@ -3,7 +3,8 @@
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
"dev": "NODE_ENV='development' node ./bin/www",
"start": "npx pm2 start ./bin/www"
},
"dependencies": {
"axios": "^0.19.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment