java - Run a .jar on Heroku -
i trying run .jar file on heroku, , can't find instructions anywhere on how this. have read wants me compile uploading heroku. possible, , if is, how this?
if helps, trying run minecraft craftbukkit server, , don't have pom.xml file yet.
you didn't provide details i'll try give , people reaches question way it.
first of all, create heroku account , create heroku application (assumed have done that).
second, need generate application jar , upload heroku. so, open terminal , install heroku cli (assuming unix terminal):
$ sudo npm install -g heroku-cli
you need have npm , nodejs installed, can check link: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04
once done that, can use npm update node version acceptable heroku-cli:
$ sudo npm install -g n $ sudo n 7.10.0
and run:
$ sudo npm install -g heroku-cli
in order deploy jars, need install deploy plugin:
$ sudo heroku plugins:install heroku-cli-deploy
than you're abble authenticate heroku-cli heroku credentials using:
$ heroku login
and run deploy command:
$ heroku deploy:jar path/to/target/myproject.jar --app you_heroku_app_name
please feel free ask further questions if i've forgot or not specific environment, steps give base solve problem!
hope helps! :)
Comments
Post a Comment