Git Product home page Git Product logo

heroku-cuberite's Introduction

heroku-cuberite

Cuberite server on Heroku.

  • Heroku Buildpack: Node.js
  • Backend: Fastify

Deploy to Heroku

  1. Deploy to Heroku
  2. (Option) Set Cuberite WebAdmin password to environment variables: CUBERITE_WEBADMIN_PASSWORD
  3. (Option) Set Cuberite WebAdmin port to environment variables: CUBERITE_WEBADMIN_PORT (Default: 8080)

Join to Cuberite server on Heroku

  1. Run shell script in client:
npm install -g tcp-websocket-tunnel

tcp-websocket-tunnel --from 25565 --tows ws://*your-app-name*.herokuapp.com/ws
  1. Launch minecraft client
  2. Join to localhost
  3. Joined to Cuberite server on Heroku

Open to Cuberite WebAdmin

  1. Open in browser:

https://*your-app-name*.herokuapp.com

heroku-cuberite's People

Contributors

densyakun avatar

Watchers

 avatar  avatar

heroku-cuberite's Issues

セーブデータの永続化のためのバックアップ

  • Heroku Dynoが再起動するときは、30秒以内にアプリケーションをシャットダウンする必要がある
  • Dynoの再起動時に、セーブデータをバックアップ
  • MongoDB GridFSを使って、MongoDBにバックアップ
  • Dynoの起動時に、セーブデータを復元

問題1

  • このアプリケーションはHerokuの無料プラン(Free Dyno)でCuberiteのプロセスとtcp-websocket-tunnelを使用したfastifyのプロセスを同時に起動するために、node-foremanを使用している
  • Foremanで実行したプロセスでは、Heroku Dynoが再起動するときに送信される、SIGTERMシグナルを受信できない: server.js#L24

問題2

  • Herokuの無料プランの提供は2022年11月28日で停止予定
  • MCサーバーを無料かつクレジットカード不要でホストできるホスティングサービスを探す
  • Vercelはプロキシ、高負荷なアプリが禁止されている

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.