loklak / loklak_server

Distributed Open Source twitter and social media message search server that anonymously collects, shares, dumps and indexes data http://api.loklak.org
GNU Lesser General Public License v2.1
1.38k stars 223 forks source link

To be asked a port number as part of the installation process. #925

Open smokingwheels opened 7 years ago

smokingwheels commented 7 years ago

Short description

Unable to install Loklak because port 9000 is in use by a ThinLinc Server. The installer is terminated with a blank log file.

Environment

Description

Ask a user a question on which port to be mapped to before trying to start anything.

sudheesh001 commented 7 years ago

The installation process also uses System.Env so you can save the port on your system if it doesn't conflict with anything else.

export PORT=8080

then run the installation procedure again, Can you check if this works @smokingwheels .

Map<String, String> env = System.getenv();
String httpPortS = config.get("port.http");
int httpPort = httpPortS == null ? 9000 : Integer.parseInt(httpPortS);
if(env.containsKey("PORT")) {
        httpPort = Integer.parseInt(env.get("PORT"));
}
SKrPl commented 7 years ago

@mariobehling can I work on this ?