mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 06:23:35 +02:00
add a domain-server scripts folder that is ignored for clean symlink
This commit is contained in:
parent
f1de2ac937
commit
0174a985ee
2 changed files with 6 additions and 2 deletions
4
domain-server/resources/web/assignment/scripts/.gitignore
vendored
Normal file
4
domain-server/resources/web/assignment/scripts/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Ignore everything in this directory
|
||||||
|
*
|
||||||
|
# Except this file
|
||||||
|
!.gitignore
|
|
@ -1047,7 +1047,7 @@ const char ASSIGNMENT_SCRIPT_HOST_LOCATION[] = "resources/web/assignment";
|
||||||
|
|
||||||
QString pathForAssignmentScript(const QUuid& assignmentUUID) {
|
QString pathForAssignmentScript(const QUuid& assignmentUUID) {
|
||||||
QString newPath(ASSIGNMENT_SCRIPT_HOST_LOCATION);
|
QString newPath(ASSIGNMENT_SCRIPT_HOST_LOCATION);
|
||||||
newPath += "/";
|
newPath += "/scripts/";
|
||||||
// append the UUID for this script as the new filename, remove the curly braces
|
// append the UUID for this script as the new filename, remove the curly braces
|
||||||
newPath += uuidStringWithoutCurlyBraces(assignmentUUID);
|
newPath += uuidStringWithoutCurlyBraces(assignmentUUID);
|
||||||
return newPath;
|
return newPath;
|
||||||
|
@ -1086,7 +1086,7 @@ bool DomainServer::handleHTTPRequest(HTTPConnection* connection, const QUrl& url
|
||||||
// via correct URL for the script so the client can download
|
// via correct URL for the script so the client can download
|
||||||
|
|
||||||
QUrl scriptURL = url;
|
QUrl scriptURL = url;
|
||||||
scriptURL.setPath(URI_ASSIGNMENT + "/"
|
scriptURL.setPath(URI_ASSIGNMENT + "/scripts/"
|
||||||
+ uuidStringWithoutCurlyBraces(pendingData->getAssignmentUUID()));
|
+ uuidStringWithoutCurlyBraces(pendingData->getAssignmentUUID()));
|
||||||
|
|
||||||
// have the HTTPManager serve the appropriate script file
|
// have the HTTPManager serve the appropriate script file
|
||||||
|
|
Loading…
Reference in a new issue