Custom Services

Configuring Custom Services

When there is a custom service defined in the Procfile and the correct ENVVARS in Gitlab add the custom service to Flynn with flynn release update release.json where release.json contains the following:

{
  "processes": {
    "proctype": {
      "ports": [
        {
          "port": 11211,
          "proto": "tcp",
          "service": {
            "name": "projectname-proctype",
            "create": true
          }
        }
      ]
    }
  }
}

projectname is your Satorix defined project name, proctype should be replaced with the name of the service from the Procfile, for example sphinx. The port is set to whatever port you have configured the service to run on.

Note about running processes

You need to make sure your Procfile start command for the service keeps the process in the foreground. For example, with sphinx search using thinking-sphinx you need to use sphinx: bundle exec rake ts:configure && bundle exec rake ts:start && bundle exec rake ts:rt:index && bundle exec rake ts:restart NODETACH=true as the Procfile command.