Update
This commit is contained in:
2
run.sh
2
run.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "-- Building and starting Necronda Server..."
|
echo "-- Building and starting Necronda Server..."
|
||||||
make && \
|
make compile && \
|
||||||
echo -e "-- Successfully finished compiling!\n" && \
|
echo -e "-- Successfully finished compiling!\n" && \
|
||||||
sleep 0.0625 && \
|
sleep 0.0625 && \
|
||||||
echo -e "-- Starting Server...\n" && \
|
echo -e "-- Starting Server...\n" && \
|
||||||
|
@ -139,14 +139,6 @@ std::string formatSize(unsigned long bytes) {
|
|||||||
return std::string(buffer);
|
return std::string(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
string getWebRoot(string host) {
|
|
||||||
string root = webroot + host;
|
|
||||||
if (fileExists(root)) {
|
|
||||||
return root;
|
|
||||||
} else {
|
|
||||||
return webroot + "www.necronda.net";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -227,6 +219,16 @@ string read_line(FILE* file) {
|
|||||||
#include "network/http/HttpResponse.cpp"
|
#include "network/http/HttpResponse.cpp"
|
||||||
#include "network/http/HttpConnection.cpp"
|
#include "network/http/HttpConnection.cpp"
|
||||||
|
|
||||||
|
string getWebRoot(string host) {
|
||||||
|
string root = webroot + host;
|
||||||
|
if (fileExists(root)) {
|
||||||
|
return root;
|
||||||
|
} else {
|
||||||
|
return webroot + "www.necronda.net";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#include "client.cpp"
|
#include "client.cpp"
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user