Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vforsh/release-o-matic
- Owner: vforsh
- Created: 2023-10-28T10:14:52.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-20T13:08:08.000Z (17 days ago)
- Last Synced: 2024-12-20T13:46:43.764Z (17 days ago)
- Topics: api, bun, gamedev, games, honojs
- Language: TypeScript
- Homepage:
- Size: 212 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}
}
```