Skip to content

Automatically deploy and update the server using Github Actions.

License

Notifications You must be signed in to change notification settings

xuanzhi33/daemon.jar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daemon.jar

Automatically deploy and update the server using Github Actions.

Usage

  1. Install JDK 21.
  2. Download the latest version from the releases.
  3. Create a application-prod.yml file in the same directory as the jar file.
server:
    port: 8346 # Port

daemonJar:
    url: https://github.com/xuanzhi33/daemon.jar/releases/download/v0.2.0/daemonjar-0.2.0.jar # URL to download your server program
    name: daemonjar-0.2.0.jar # Name of it
    token: your_token # Update Token
  1. Run the jar file.
java -jar daemonjar-x.x.x.jar
  1. Using the following command to update your server.
curl "https://your-ip:port/update?token=your_token"
  1. It will download the latest version of the server program and restart it.

About

Automatically deploy and update the server using Github Actions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages