entriphy / sp-playcount-librespot

Modification of librespot-java to provide play count info from Spotify
Apache License 2.0
119 stars 16 forks source link

Where to Host #7

Closed giovannicassanelli-cell closed 4 years ago

giovannicassanelli-cell commented 4 years ago

Hey guys I was planning to host this amazing program on a server. I thought about Heroku, but I am struggling to deploy and start the program since I cannot find a way to inject the and while running the file. Has anyone already done it and can help me ? Or suggest another host ?

Thanks in advance

Giovanni

entriphy commented 4 years ago

The public API that I host is actually hosted on Heroku. I forgot to mention in the README that you can set the USERNAME and PASSWORD environment variables to your Spotify credentials.

Here are the commands I use to deploy it to Heroku:

wget https://github.com/evilarceus/sp-playcount-librespot/releases/download/v1.4/sp-playcount-librespot-v1.4.jar
heroku deploy:jar -a <heroku app name> "sp-playcount-librespot-v1.4.jar"

Or if you're compiling from source:

git clone https://github.com/evilarceus/sp-playcount-librespot
cd sp-playcount-librespot
mvn clean package
heroku deploy:jar -a <heroku app name> "core/target/librespot-core-jar-with-dependencies.jar" 

In Heroku: env

giovannicassanelli-cell commented 4 years ago

The public API that I host is actually hosted on Heroku. I forgot to mention in the README that you can set the USERNAME and PASSWORD environment variables to your Spotify credentials.

Here are the commands I use to deploy it to Heroku:

wget https://github.com/evilarceus/sp-playcount-librespot/releases/download/v1.4/sp-playcount-librespot-v1.4.jar
heroku deploy:jar -a <heroku app name> "sp-playcount-librespot-v1.4.jar"

Or if you're compiling from source:

git clone https://github.com/evilarceus/sp-playcount-librespot
cd sp-playcount-librespot
mvn clean package
heroku deploy:jar -a <heroku app name> "core/target/librespot-core-jar-with-dependencies.jar" 

In Heroku: env

IT CRASHED