Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Dev server setup

John Doe edited this page Apr 18, 2024 · 4 revisions

You can setup dev server to check changes and do some playtest

IDE(Recommended for development)

Note

You need to have a public ipv6 connection or public ipv4 address and disable firewall for port 25565 if you wish to share your server

Just open the project using IntelliJ IDEA

You can use built-in run configuration to build/start/test server

Locally

You can setup the local server without IDE

Note

You need to have a public ipv6 connection or public ipv4 address and disable firewall for port 25565 if you wish to share your server

You also need to install docker and JDK 21

  1. docker compose up -d
  2. ./gradlew assemble
  3. docker build -t server .
  4. docker run --network host server

Now you(and anybody who can access your PC via network) can connect to port 25565 at your LAN/WAN/localhost ip

GitHub Codespaces

You can setup the GitHub Codespaces and use it as local dev server

Please follow official documentation on how to connect to codespace:

Gitpod(Recommended for team playtest)

You can setup Gitpod workspace that can act as the SSH server

  1. Go to Gitpod
  2. Click on New Workspace image
  3. Open github branches in a new tab image (official or from your fork) and click at branch you wish to test image
  4. Copy browser URL, it should be like https://github.com/daylifecraft/minigames/tree/feature/gitpod
  5. Return to your Gitpod tab then past and confirm URL
  6. Select any other options to your liking
  7. Click continue and wait for 3-5 minutes
  8. Go back to your workspaces, and select Connect via SSH options from dropdown menu image
  9. Choose Access Token and copy the SSH command ssh '...@...gitpod.io'
  10. Add -L 25565:127.0.0.1:25565 to your command after ssh, the complete command should be ssh -L 25565:127.0.0.1:25565 '...@...gitpod.io'
  11. Execute command in terminal and share it to your team members
  12. Now you can connect to dev server via address localhost:25565
Clone this wiki locally