在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jkutner/heroku-buildpack-minecraft开源软件地址(OpenSource Url):https://github.com/jkutner/heroku-buildpack-minecraft开源编程语言(OpenSource Language):Shell 93.9%开源软件介绍(OpenSource Introduction):Heroku Minecraft BuildpackThis is a Heroku Buildpack for running a Minecraft server in a dyno. UsageCreate a free ngrok account and copy your Auth token. Then create a new Git project with a $ echo 'eula=true' > eula.txt
$ git init
$ git add eula.txt
$ git commit -m "first commit" Then, install the Heroku CLI. Create a Heroku app, set your ngrok token, and push: $ heroku create
$ heroku buildpacks:add heroku/python
$ heroku buildpacks:add heroku/jvm
$ heroku buildpacks:add jkutner/minecraft
$ heroku config:set NGROK_API_TOKEN="xxxxx"
$ git push heroku master Finally, open the app: $ heroku open This will display the ngrok logs, which will contain the name of the server (really it's a proxy, but whatever):
Copy the Syncing to S3The Heroku filesystem is ephemeral, which means files written to the file system will be destroyed when the server is restarted. Minecraft keeps all of the data for the server in flat files on the file system. Thus, if you want to keep you world, you'll need to sync it to S3. First, create an AWS account and an S3 bucket. Then configure the bucket and your AWS keys like this:
The buildpack will sync your world to the bucket every 60 seconds, but this is configurable by setting the Connecting to the server consoleThe Minecraft server runs inside a Once you have Heroku Exec installed, you can connect to the console using
WARNING You are now connected to the Minecraft server. Use CustomizingngrokYou can customize ngrok by setting the
MinecraftYou can choose the Minecraft version by setting the MINECRAFT_VERSION like so:
You can also configure the server properties by creating a You can add files such as Adding New Minecraft VersionsPlease submit Pull Requests to Using the Buildpack from sourceIf you want the bleeding edge version of this buildpack run:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论