Skip to content

Teqed/shattered-sky-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shattered-sky-net

Repository for shatteredsky.net website. Built with Nuxt.js.

Build

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

Deployment

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

image

To keep the application running after you log out of the server, you can save the current PM2 process list:

pm2 save

Pull latest changes, build, and redeploy

git pull && npm run build && pm2 restart all

Development Server

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