Repository for shatteredsky.net website. Built with Nuxt.js.
Clone the repository:
git clone https://github.com/Teqed/shattered-sky-net.git
Change into the project directory:
cd shattered-sky-net
Install dependencies using Yarn:
yarn install
Build the application:
npm run build
This project uses PM2 to manage the application. PM2 is a production process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks. See the PM2 documentation for more information.
After cloning the repository, installing dependencies, and building the application, you can start the application with PM2:
pm2 start
By default, this will start a cluster of 4 instances of the application that listen on port 3344. You can change the number of instances or listening port by editing the ecosystem.config.js file, which is used by PM2 to configure the application. It's recommended to use a reverse proxy like Caddy to handle automatic HTTPS.
You can view the status of the application with:
pm2 status
To keep the application running after you log out of the server, you can save the current PM2 process list:
pm2 save
git pull && npm run build && pm2 restart all
The development server runs on http://localhost:3000 by default. You can change the port by editing the nuxt.config.js
file.
npm run dev