The backend that runs your app's API routes and scheduled jobs

Every app you build on Hercules runs on its own backend, managed from the Hosting tab. It answers requests from other software, such as a supplier's system reporting a shipped order, and runs scheduled work like a nightly invoice run.

What can Hosting do for your business?

Take requests from other software

Your backend has its own web address, so a supplier's system can send a webhook when an order ships. Other apps can also call it to read your data.

Backend
Hosting tab with the HTTP Actions URL help text, explaining that the backend answers webhooks at its own address
Chat message asking Hercules to add two scheduled jobs, at 7am and 10am Eastern

Run jobs on a schedule

A recurring job can send overdue reminders every Monday. A one-time job runs at a set moment, like a follow-up email 3 days after a quote goes out.

Backend
Secrets screen with the Add Secret form (key, value, environments, Sensitive) and saved keys

Keep API keys in Secrets

Hercules uses a key saved in Secrets when it builds a feature, seeing only the key's name. You can't reveal a key again once you mark it Sensitive.

Secrets
Hosting tab with the Production backend and a separate development backend under Development deployments

Test on a separate backend

Each branch runs on its own backend and database until you merge. Scheduled jobs on a branch still send real emails, so ask Hercules to remove them there before you test.

Branches
Backend function breakdown with call counts and database bandwidth for the last 7 days

See what the backend is doing

Backend analytics shows call counts, database bandwidth and compute for each function, scheduled jobs included. For logs and errors, ask Hercules.

Backend
Change region dialog with EU West (Ireland) selected and the offline warning

Choose where it runs

Move an app's backend and database to another region, such as EU West (Ireland). Only that app moves, and it's usually offline for a few minutes.

Backend

How do you add a scheduled job or an API route?

  1. 1. Describe the job on a branch

    Every night at 2 a.m. Eastern, email each customer an invoice for the jobs we completed that day.

    Hercules writes the job on the branch and sends invoices from your verified sender.

  2. 2. Connect the outside system

    Give our parts supplier a webhook address for shipped orders, and mark the matching purchase order shipped.

    Hercules builds the route. Give the supplier its address from the Hosting tab, and save any key they issue in Secrets.

  3. 3. Check the branch, then merge

    Check the preview and Code diff, then click Merge.

    Hercules merges the branch. Backend changes go live the next time your main dev session starts, so publish soon after. With a separate development backend, Publish sends them live instead.

    Branches

What has a business built with Hosting?

American Mortuary Equipment has thousands of mortuary coolers in funeral homes across North America. Checking one used to mean reading its gauge in person. Their owner, TR, had never coded, but he built an app on Hercules that tracks each cooler's live temperature. An App Integration saves sensor readings in the app's database, and the backend alerts TR when a cooler warms up.

Read the American Mortuary Equipment story

“I'm not a tech person at all, but you make it easier for rookies and dummies like myself. It's a reliable platform, so I can confidently recommend it and new users get up to speed quickly.”
TR, Owner, American Mortuary Equipment

Related features

Frequently asked questions

What should you know before you start?
  • The Hosting tab doesn't list scheduled jobs, so ask Hercules to check them.
  • Changing an app's region needs a paid plan and an organization owner or admin. Pending scheduled jobs don't move with the app.
  • Backend actions run for up to 10 minutes and return up to 16 MB. Secrets
  • Backend usage draws on the Hercules Cloud usage your plan includes, then bills pay-as-you-go. See the pricing page.
Can a developer edit the backend code directly?

On a paid plan, a developer can edit backend code in the Codebase tab. Asking Hercules is usually safer, because it makes coordinated changes across files. Code editor

Can my backend call another company's API?

Backend actions in Hercules can call any outside service over HTTP, with no domain allowlist to set up. A service that only accepts raw TCP connections, such as Postgres, needs an HTTP-based driver. Secrets

Can I use different keys for testing and for the live app?

Add the same key twice in Secrets, one scoped to Production and one to Development. Secrets

What if our supplier only accepts known IP addresses?

The Hercules docs list the backend's public IP addresses for each region, for your supplier to allowlist. Backend

How do you get started?

Pick one recurring task, note its trigger and its output, and describe it in chat. Start building.