One project per environment
Create one project for each environment, likeproduction and staging. Then, in each environment of your app:
- Set the project’s endpoint to that environment’s route, like
https://your-app.com/api/nelkapfor production andhttps://staging.your-app.com/api/nelkapfor staging. - Set
NELKAP_API_KEYandNELKAP_SECRETto that project’s API key and secret.
What stays apart
With one project per environment:- A run started in staging is called on your staging app, never on production.
- An event emitted in staging starts staging workflows and wakes staging runs only.
- Staging registers its own list of workflows. Testing a new workflow in staging doesn’t add it to production, and removing one in staging doesn’t cancel production runs.
- Each project has its own schedules, so a scheduled workflow runs once in each environment that registers it.
Find an environment’s runs
Every list of runs, events, and workflows can be narrowed to one project. Choose the project at the top of the page, and every page you open next shows only that environment.Test before you deploy to production
A typical flow:- Deploy your change to staging.
- Start a run there, with
runor by emitting the event that starts it. - Open the run, and check each step: what it received, what it returned, and how long it took.
- Deploy to production once it does what you expect.