Make new contributors welcome (#11)

* @mediabi3

* Fix up for guide and making server run easier
This commit is contained in:
Daniel Ginovker
2019-10-05 16:50:26 -04:00
committed by GitHub
parent 5fe35d517d
commit d822c80882
13 changed files with 76 additions and 5 deletions
@@ -1,5 +1,6 @@
package org.apollo.jagcached;
import java.io.File;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.util.concurrent.ExecutorService;
@@ -68,6 +69,20 @@ public final class FileServer {
* @throws Exception if an error occurs.
*/
public void start() throws Exception {
if (!new File("cache").exists())
{
System.out.println("************************************");
System.out.println("************************************");
System.out.println("************************************");
System.out.println("WARNING: I could not find the /cache folder. You are LIKELY running this in the wrong directory!");
System.out.println("In IntelliJ, fix it by clicking \"FileServer\" > Edit Configurations at the top of your screen");
System.out.println("Then changing the \"Working Directory\" to be in \"2006rebotted/2006Redone file_server\", instead of just \"2006rebotted\"");
System.out.println("************************************");
System.out.println("************************************");
System.out.println("************************************");
System.exit(1);
}
logger.info("Starting workers...");
pool.start();