Let’s just take the ‘hello-vertx’ project as an example. First I start Okapi with the storage of postgreSQL. Then create the tenant: ‘testlib’ and the module:‘hello’, deploy this module and enable it for ‘testlib’. Of course these infomations have been stored into the ‘tenants’ and ‘modules’ tables of postgreSQL. The ‘hello’ module runs well. After executed all these steps, I tried stopping Okapi and restarting it. At this time, when I sent a GET request to the ‘/_/deployment/modules’ interface, Okapi just returned an empty Array:’[ ]’. This means the ‘hello’ module did not follow the Okapi to restart. **_
-
My Question is: Do I have to redeploy the module manually by sending the POST request to the ‘/_/deployment/modules’ interface?
Has Okapi already implemented to deploy modules automatically? If so , how could I do this?
Another important question :
I want to deploy Okapi and hello-vertx on different servers. How to do this? What special configurations do I have to pay attention? How can Okapi deploy a remote-server module?