-
Notifications
You must be signed in to change notification settings - Fork 3
Configuration
There are 3 main components to JobQuery:
- Back-end server application
- Front-end client
- Database
The client interacts with the back-end via an exposed REST api, and the server handles database operations. These can now be configured independently by setting specific environment attributes.
Note, there are two main ways the client app can be deployed:
- Development deployment - uses
appdev.js
, and all libs etc are loaded individually. For this, rungulp dev
. - Staging/Production deployment - uses
app.js
, which is uglified, concatenated, and minified along with libs and other resources. For this, rungulp staging
orgulp prod
Here are the main environment variables you may be interested in. These are independently set for each Azure instance, and you'll need to set them if you'd like to change the defaults for your local environment.
GLOBAL_URL - default: http://localhost:8000
DB_URL - default: mongodb://localhost/myApp
smtpUsername
smtpPassword
PORT - default: 9000
URL (base url) - default: http://localhost
ADMIN_SECRET
USER_SECRET
SERVER_URL - dev default: http://localhost:9000, staging/production default: http://hrhqjobquery.azurewebsites.net