Skip to main content

Deployment

Deployment steps (on Clevercloud)

Indexer deployment requires 2 apps :

AppSize
NodeJS AppAt least L , Enable dedicated instance
Postgres AddonAt least Huge Space X

Clevercloud-configuration

  • Create both apps
  • Set the following environment variables on the NodeJS App
CC_PRE_BUILD_HOOK="bash init.sh"
CC_WORKER_COMMAND="bash run_worker.sh"
PORT="8080"
  • The deployment should fail, this is intended (Only the first time deploying), but we need to check if the schema and the tables are created correctly as follow Db-configuration
  • Update the environments variables and replace the old ones by
CC_PRE_BUILD_HOOK="bash build.sh"
CC_WORKER_COMMAND="bash run_worker.sh"
PORT="8080"
  • Click on the "rebuild and restart" button at the top of the page

The process is the same to deploy the dictionary.

Note : During the resize of the Database Addon on clevercloud, the created schema will be migrated with less permissions, permissions should be added manually after the migration.