Giter Site home page Giter Site logo

heroku-lavalink's Introduction

heroku-lavalink

Easily deploy a lavalink server on heroku. This is a very elementary and barebones approach, but reliable nonetheless. This branch will automatically download the latest Lavalink jar file.

heroku-lavalink will now download the latest Lavalink.jar automatically & directly from GitHub

To update your Lavalink.jar, restart all dynos (faster) or redeploy.

One Click Deploy:

Deploy

Buildpacks should be added automatically, you may modify the PASS variable during setup to change the password.

Github Deploy:

  1. Create a fork of this repo
  2. Navigate to your heroku project @dashboard.heroku.com
  3. Navigate to your project "Settings", click "Reaveal Config Vars", and set a new var called PASS to what you want your lavalink password to be.
  4. In the same menu, set a new var called JAVA_TOOL_OPTIONS and set it to "-XX:+UseContainerSupport -Xmx500m -Xss256k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8" without the "" , this will set ram to max on a free dyno
  5. Navigate to the "Deploy" tab
  6. Find/Click the "Connect to GitHub" section and login if needed
  7. For the repo name, type "heroku-lavalink" and Click "Search"
  8. Click "Connect"
  9. Scroll down and find "Manual Deploy", then switch the branch to auto and "Deploy Branch".

Heroku CLI Deploy:

  1. Download files (Clone or download->Download ZIP).
  2. Extract files into an empty directory.
  3. Follow https://devcenter.heroku.com/articles/git. If heroku is unable to automatically configure buildpacks, go to your projects settings on the heroku website and add java and nodejs.
  4. Go to your project settings->config vars on heroku and set a new var called PASS to what you want your lavalink password to be.
  5. In the same menu, set a new var called JAVA_TOOL_OPTIONS and set it to "-XX:+UseContainerSupport -Xmx500m -Xss256k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8" without the "" , this will set ram to max on a free dyno

Notes:

  1. After changing PASS you must redeploy or click the More menu and restart all dynos.
  2. If heroku is unable to automatically configure buildpacks, go to your projects settings on the heroku website and add java and nodejs.

Please understand your lavalink server will most likely run out of memory on a free dyno. I would recommend upgrading or switching to a lighter alternative. If you do upgrade, you must change -Xmx in the JAVA_TOOL_OPTIONS to your new amount of ram.

Need a featureful, maintained, light music bot without using lavalink? Checkout Manderine!

heroku-lavalink's People

Contributors

karyeet avatar rexwu1104 avatar wizzygeek avatar

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.