Deploying an Event Server application

For engines that require Event Server, you can deploy a PredictionIO Event Server from the terminal. If you recall, the Event Server engine is used to collect events from various applications and stored by the engine to later use for the training of the model:

  1. Log in to the Heroku CLI using heroku login and key in the username and password.
  2. Add Buildpack for the Event Server:
git clone https://github.com/heroku/predictionio-buildpack.git pio-eventserver
cd pio-eventserver
  1. Create an eventserver app on Heroku shown as follows:
heroku create recommendserver
The recommendserver here is the name of the eventserver for the Heroku app. You can choose any name for it.
  1. Add POSTGRESQL to store the eventserver data:
heroku addons:create heroku-postgresql:hobby-dev

You may want to specify heroku-postgresql:standard-0 instead, because the free hobby-dev database is limited to 10,000 records.

  1. Add buildpack for the engine as follows:
heroku buildpacks:add -i 1
https://github.com/heroku/predictionio-buildpack.git

heroku buildpacks:add -i 2 heroku/scala
  1. Deploy eventserver as follows:
heroku pg:wait && git push heroku master

The following screenshot shows the terminal once you enter the preceding commands:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset