####TravisCI: Linux/OSX builds
Master: | Development:
####Windows builds
Master: | Latest commit:
University project for PEPIT
To launch a server you first need to initialize a configuration. The configuration has some parameters. Here is the list:
port: The application port. By default: 8080staticServerPort: The static file serves port. By default: 1701resourcesDirectoryPath: The path to the folder containing the resources of the application relative to the image location. By default: '../../GitRepositories/OOnoz/Resources'domainName: The domain name used for the static file server. By default: 'localhost'
Configuration {
#parameters : {
'staticServerPort' : 1701,
'resourcesDirectoryPath' : '../../GitRepositories/OOnoz/Resources',
'port' : 8080,
'domainName' : 'localhost'
}
}
To set the configuration to the server you can execute the following script with the right path to a configuration file:
OOServer setConfigurationFromFile: '../../GitRepositories/OOnoz/configuration.ston'
If you use all the default values you can just execute:
OOServer setConfigurationWith: OOConfiguration new
To help with the development the project contains some developers features. Those features contains for example:
- Activation of the in-image debugger:
OODevHelper useInImageDebugger - Installation of GitFileTree:
OODevHelper installGitFileTree - Launch in memory voyage backend for development database and create a user with mcqs:
OODevHelper setupMemoryDB - Get an instance of MCQ:
OODevHelper testingMCQInstance - Install new branch:
OODevHelper installNewBranch: 'myBranch' - Launch OOnoz with the default configuration:
OODevHelper defaultServerLaunching - Set Lille 1 proxy:
OODevHelper setLille1Proxy - Remove the proxy:
OODevHelper removeProxy
To keep:
location / { try_files $uri $uri/index.html @proxy; }
location @proxy { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://localhost:7850; }