📜 ⬆️ ⬇️

Jelastic + Luna = mini Github

Two and a half months ago I wrote about my application.
During this time, I closed a couple of dozen issue, added functionality, executed and fixed the wishes of the users Yeah , kekekeks .
In short, what was added:

And now how my application can be used. http I sawed for a reason ...

Instruction:


  1. Login / register on jelastic.com
  2. Create your own environment. It should be SSL and Mongo, the rest to taste (I tried with jetty 6 and tomcat 7). Do not enable session replication (HA slider).
  3. If nothing fell, then we go to drink tea. Otherwise go to the support jelastic'a.
  4. After creating the environment, you will receive an email with the address and password for Mongo.
  5. We go to the address from before. paragraph, log in. Create a database and user for it .
  6. $ git clone http://luna-tool.jelastic.com/den/luna.git $ cd luna $ ./sbt package 
  7. Open the assembled war (it is in target / scala-2.9.1 / luna-tool_2.9.1-1.0.war). We find there WEB-INF / classes / props / default.props. Add the following db.host settings (taken from the letter with the web interface), dp.port, db.name (the name of the database you created above), db.user and db.password (the user and password for db.name). The remaining settings are optional . Make sure this file is in ASCII encoding.
  8. We load war on jelastic, diploy. We are happy.
  9. Living example.

FAQ


error: RPC failed; result = 22, HTTP code = 411

It is necessary to increase the size of the buffer:
 $ git config http.postBuffer bytes 

See git in cloning addresses

It starts, but is unavailable from the outside. Later add an explicit shutdown.

')

Source: https://habr.com/ru/post/138657/


All Articles