LWJGL.org - The home of Lightweight Java Game Library 3
The website for LWJGL 3.
Static assets are loaded from LWJGL's CDN ( AWS CloudFront ).
We use Google Analytics for tracking.
Build status icons are loaded directly from travis-ci.org.
A username account to LWJGL's TeamCity server is required for loading Windows build statuses. Node proxies requests to teamcity.lwjgl.org to avoid SSL issues.
Other LWJGL subdomains:
- The website for LWJGL 2 can be found here. A static copy of the old LWJGL website is now hosted directly from S3
- The blog is Ghost.
- The forum is SMF.
- The wiki for LWJGL 2 was MediaWiki. A static copy of the old LWJGL wiki is now hosted directly from S3.
Place a JSON file in the root directory named config.json with the following contents. Additional settings are automatically populated when the project is built for production.
{
"server": {
"port": 8080
},
"teamcity": {
"username": "<user>",
"password": "<pass>"
}
}
- To install all required npm packages:
yarn
- To build vendor JS file run:
npm run vendor
- To start the server in dev mode:
npm start
# or
node server
For watching and auto-reloading the server we use nodemon.
First make sure you have it installed globally:
npm -g i nodemon
Monitor for /server changes and auto-restart with:
npm run watch
The website is served via Amazon CloudFront using the server's hostname & port as origin. SSL Termination happens on the CDN (using a certificate issued by AWS Certificate Manager).
yarn
npm run release
To run the production build ( in *nix )
NODE_ENV=production node server
or force production with (not recommended)
node server --production
# or
npm run start-production
cd /path/to/lwjgl3-www
NODE_ENV=production pm2 start server/index.js --name lwjgl
pm2 save
or place a process.json file anywhere with the following contents:
{
apps: [
{
name: "lwjgl-site",
cwd: "/path/to/lwjgl3-www",
script: "./server/index.js",
env: {
"NODE_ENV": "production",
}
}
]
}
and then run:
pm2 start process.json --only lwjgl-site
pm2 save
Place a JSON file named forever.json in the root folder with the following contents:
{
"uid": "lwjgl",
"append": true,
"watch": false,
"script": "server",
"sourceDir": "/path/to/lwjgl3-www",
"args": ["--production"],
"command": "node"
}
and then run:
forever start forever.json