B
B
BitSky
Search
⌃K

Heroku

Deploy BitSky to Heroku is very easy. We will guide you step by step to deploy BitSky to Heroku.
Before continuing make sure you have a Heroku account.
If an app has a free web dyno, and that dyno receives no web traffic in a 30-minute period, it will sleep. This means you possibly will lose data, please follow how to keep a free Heroku app alive

Setup

Start BitSky Web Application

Open bitskyai/bitsky-web-app, and make sure you switch to master branch, and click Deploy to Heroku
Type a meaningful name(e.g. bitskyai), for the other configuration, keep it as default for now.
Then click Deploy app, it will start to deploy BitSky Web Application to Heroku.
After about 1 or 2 mins, you should see a successfully deploy message. Click the View button, it will open your BitSky Web Application.
In this example, my BitSky Web Application Base URL is https://bitskyai.herokuapp.com/
Now please follow 1. Create a Retailer Configuration to create a Retailer Configuration for Hello Retailer. Since we didn't deploy Hello Retailer, so for the 2. Base URL , you can temporarily type https://helloretailer.herokuapp.com, and after deploying Hello Retailer, we can update the Base URL.
Please follow 4. Create Producer Configurations to create Producer Configurations to Headless Producer Docker Container and HTTP Producer Docker Container

Start Headless Producer

Open bitskyai/bitsky-headless-producer, and make sure you switch to master branch, and click Deploy to Heroku
Configure Headless Producer:
  1. 1.
    App Name: headless001, Type a unique and meaningful name.
  2. 2.
    BITSKY_BASE_URL: https://bitskyai.herokuapp.com/, Type your BitSky Web Application Base URL.
  3. 3.
    GLOBAL_ID: 4e0a7e26-90e1-44f7-a8a3-9ae1f702c0ec, Type your Headless Configuration Global ID( if you don't know how to get Global ID, please check 5. Configure Headless Producer)
Then click Deploy app, it will start to deploy BitSky Headless Producer to Heroku.
After about 2 or 3 mins, you should see a successfully deploy message. Click the View button, it will open your BitSky Headless Producer.
In this example, my BitSky Headless Producer Base URL is https://headless001.herokuapp.com/

Start HTTP Producer

Open bitskyai/bitsky-http-producer, and make sure you switch to master branch, and click Deploy to Heroku
Configure HTTP Producer:
  1. 1.
    App Name: http0001, Type a unique and meaningful name.
  2. 2.
    BITSKY_BASE_URL: https://bitskyai.herokuapp.com/, Type your BitSky Web Application Base URL.
  3. 3.
    GLOBAL_ID: 9db09aa2-2201-442e-a739-01e94c7b71ab, Type your HTTP Configuration Global ID( if you don't know how to get Global ID, please check 6. Configure HTTP Producer)
Then click the Deploy app, it will start to deploy BitSky HTTP Producer to Heroku.
After about 1 or 2 mins, you should see a successfully deploy message. Click the View button, it will open your BitSky HTTP Producer.
In this example, my BitSky HTTP Producer Base URL is https://http0001.herokuapp.com/

Start Hello Retailer

Open bitskyai/bitsky-hello-retailer, and make sure you switch to master branch and click Deploy to Heroku
Configure Hello Retailer:
  1. 1.
    App Name: helloretailer001, Type a unique and meaningful name.
  2. 2.
    BITSKY_BASE_URL: https://bitskyai.herokuapp.com/, Type your BitSky Web Application Base URL.
  3. 3.
    GLOBAL_ID: 32fd3ebc-cbc0-46b7-a63f-834dd79913b2, Type your Retailer Configuration Global ID( if you don't know how to get Global ID, please check 2. Configure Hello Retailer Service)
Then click the Deploy app, it will start to deploy BitSky Hello Retailer to Heroku.
After about 1 or 2 mins, you should see a successfully deploy message. Click the View button, it will open your BitSky Hello Retailer.
In this example, my BitSky Hello Retailer Base URL is https://helloretailer001.herokuapp.com/

Update Retailer Configuration

Since my actual Base URL of Hello Retailer isn't https://helloretailer.herokuapp.com, so need to update the Base URL in the Retailer Configuration. Open Retailer Configurations in your BitSky Web Application, and select the Retailer Configuration for your Hello Retailer(e.g. first retailer configuration), and update the Base URL field.

Crawl Data

Instead of view localhost, view the Heroku apps you just created, then follow Crawl Data, and you should be able to crawl all blogs from https://exampleblog.bitsky.ai/.

Conclusion

Thanks for Heroku, it makes deploy BitSky to a cloud service is so simple.
Last modified 2yr ago