sharetribe / harmony

Availability management backend and API for Sharetribe marketplaces
https://www.sharetribe.com
Apache License 2.0
19 stars 11 forks source link

Running without docket or convox #43

Closed alexey closed 6 years ago

alexey commented 6 years ago

Hello,

I am trying to run on clean ubuntu server and its not going with lein.

Can you please be so kind and post shorty instruction for how to do it ?

Thanks in advance

zenikk commented 6 years ago

To build jar: lein clean && lein uberjar

To run server:

HARMONY_JAVA_OPTS="-server -Xms256m -Xmx768m -Xss512k -XX:+UseG1GC"
AUTH_TOKEN_SECRETS=SECRET_TOKEN111 DB_PORT=13306 java $HARMONY_JAVA_OPTS -cp target/sharetribe-harmony.jar clojure.main -m harmony.main.harmony-api

You can override config settings with env variables, see resources/conf/harmony-api.edn

alexey commented 6 years ago

Thank you ! I did the same by reading docker files better