Skip to content

Instantly share code, notes, and snippets.

View josephmtinangi's full-sized avatar

Joseph Mtinangi josephmtinangi

View GitHub Profile
public class App {
public static void main(String[] args) {
String string1 = "string1";
String string2 = "string2";
String checksum = DigestUtils
.sha1Hex(String.valueOf((string1.length() + DigestUtils.md5Hex(string2).length())));
System.out.println("string1 = " + string1);
heroku plugins:install heroku-cli-deploy
mvn clean package
heroku deploy:jar target/heroku-demo-0.0.1-SNAPSHOT.jar --app <APP-NAME>
heroku logs --tail --app <APP-NAME>
JDBC_DATABASE_URL=jdbc:postgresql://localhost:5432/database_name
JDBC_DATABASE_USERNAME=postgres
JDBC_DATABASE_PASSWORD=postgres