Version 0.2.1 Change the Port of the server
This commit is contained in:
		@@ -46,7 +46,7 @@ module.exports.getDiscordUser = function (code, session) {
 | 
			
		||||
            var link = "https://subsonics.raphix.fr" 
 | 
			
		||||
 | 
			
		||||
            if(process.env.DEV == "true") {
 | 
			
		||||
                link = "http://localhost:3001"
 | 
			
		||||
                link = "http://localhost:4000"
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            const params = new URLSearchParams();
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@ function init() {
 | 
			
		||||
 | 
			
		||||
    const app = express();
 | 
			
		||||
 | 
			
		||||
    const port = normalizePort(process.env.PORT || '3001');
 | 
			
		||||
    const port = normalizePort(process.env.PORT || '4000');
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    const server = require('http').createServer(app);
 | 
			
		||||
@@ -152,7 +152,7 @@ function IOConnection(io) {
 | 
			
		||||
            if(process.env.DEV == "true") {
 | 
			
		||||
 | 
			
		||||
                alog.log("Mode Developpeur Actif : Redirige vers LOCALHOST")
 | 
			
		||||
                discordlink = "https://discord.com/api/oauth2/authorize?client_id=1094727789682380922&redirect_uri=http%3A%2F%2Flocalhost%3A3001%2Finternal%2Fredirect&response_type=code&scope=identify%20guilds%20guilds.members.read" //DEV
 | 
			
		||||
                discordlink = "https://discord.com/api/oauth2/authorize?client_id=1094727789682380922&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Finternal%2Fredirect&response_type=code&scope=identify%20guilds%20guilds.members.read" //DEV
 | 
			
		||||
            } else {
 | 
			
		||||
                discordlink = "https://discord.com/api/oauth2/authorize?client_id=1094727789682380922&redirect_uri=https%3A%2F%2Fsubsonics.raphix.fr%2Finternal%2Fredirect&response_type=code&scope=identify%20guilds%20guilds.members.read" //OFFICIEL
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user