8000 GitHub - landis22b/lwjgl3-www: The LWJGL 3 website.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

landis22b/lwjgl3-www

 
 

Repository files navigation

LWJGL.org - The home of Lightweight Java Game Library 3

The website for LWJGL 3.

Production Requirements

Dependencies

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.

App Configuration

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>"
  }
}

Build/running in development

  1. To install all required npm packages:
yarn
  1. To build vendor JS file run:
npm run vendor
  1. 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

Production

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).

Build for production

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

Run in production with PM2

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

Run in production with forever

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

About

The LWJGL 3 website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.6%
  • CSS 7.2%
  • HTML 1.2%
0