Skip to content

Deploying with Koyeb

Sourav edited this page Nov 29, 2022 · 2 revisions

=> Deploying to Koyeb

Step 1

Click deploy button on home page

Step 2

Get DATABASE_URL from render.com (recommended) or railway.app. Read: How to get Database url?

Step 3

Fill required info including DATABASE_URL & KOYEB_API_KEY, then deploy.

Finished!

Bot will now start running

=> Configuring KOYEB_API_KEY

Step 1

Get Koyeb api key from API page, type name and then click create API access token

Step 2

Copy API key and go to app, service, then click three dots and tap on edit service configuration

Step 3

Go to your bot number and type:
>process.env.KOYEB_API_KEY="YOUR_API_KEY" ( API key must be inside quotes ", no response will come if its success.)
After this, type:
.setvar KOYEB_API_KEY:YourKeyHere

Finished!

Now you can update/setvar remotely from WhatsApp!