Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vforsh/release-o-matic

API to manage web games releases
https://github.com/vforsh/release-o-matic

api bun gamedev games honojs

Last synced: 12 days ago
JSON representation

API to manage web games releases

Awesome Lists containing this project

README

        

## What is it?

This is a simple API to manage deployments and releases of web games.

## Deployment Setup

Deployment is done with [PM2](https://pm2.keymetrics.io/docs/usage/deployment/).

You will need to install Bun and PM2 on the host machine. Also, you will need to add SSH keys to host machine so it will be able to clone git repo with the project.

After that, you must run the following command to prepare the deployment:
```sh
pm2 deploy ecosystem.config.js production setup
```

Then you can deploy the app with the following command:
```sh
pm2 deploy ecosystem.config.js production
```

## Server Setup

You will need to set up a reverse proxy with your server software to forward requests to the port where the app is running.

I use Caddy as a web server, here is the section of my Caddyfile (by default it is located at `/etc/caddy/Caddyfile`):

```
your-domain.com {
# Set this path to your site's directory.
root * /var/www/html

# ...more settings...

handle_path /papa-cherry-2/releases* {
reverse_proxy localhost:4000
}
}
```