Skip to main content
Browse docs

Bring Your AI

Integration and release checklist

Check code, configuration, ports, data and outside services before a change that touches them goes to production.

On this page

Use this checklist when you or your coding agent change how an app is configured, how it stores data, or how it talks to an outside service. Work through it on the development app, then release.

Your production app is a separate app with its own address, database and configuration. You create it once from the app's Settings under Production (see Create your production app), and every change after that reaches it through Create release and then Roll out to production (see Release changes to production).

Code

  1. Commit and push everything the app needs to its repository. Builds and releases use the repository, never files left in the workspace.
  2. Keep the lockfile up to date, so the app installs the same way every time.
  3. Make sure the app's own test and build commands pass. You can run them in the Terminal.

Configuration values

The values an app needs, such as API keys and settings, are listed on the app's Settings under Configuration. The list comes from the app's app.json record, which 1904 keeps in the repository alongside your code.

  1. When the app needs a new value, add it to app.json with a plain description, mark whether it's secret, and say whether it's required. Ask your coding agent to do this. A name app.json doesn't list can't be set on the Configuration page.
  2. Fill in values on the Configuration page and select Save values. Paste a .env file fills several at once for you to review first.
  3. Saved values reach the app when it next starts. When you see Your saved changes aren't live yet., select Restart app.
  4. Don't add names 1904 sets for you, such as PORT, HOSTNAME, NODE_ENV and DATABASE_URL. The Configuration page rejects them.
  5. Make the app start and serve pages even while a value from an outside service is still missing, so you can finish setup without a crash.

Configuration settings for an app showing setup needed, values grouped by service, and the Save values button

Keep app.json complete

app.json records everything the app runs: each service and its port, each database, and each settings file. 1904 uses that record to build your production app and every release. If the app runs something app.json doesn't record, or a recorded part is removed, creating production or rolling out a release stops and production stays on its previous version. When you add a service, a database or a settings file, ask your coding agent to record it in app.json in the same change.

Port and address

  • Listen on the port in the PORT variable, on all network interfaces. Don't hard-code a port.
  • Anything that needs the app's own web address, such as a sign-in callback, should use the address 1904 shows for that app. Your production app has its own address, separate from the development app.

Database and files

  • Each app gets its own PostgreSQL database through DATABASE_URL. Your production app has a separate database from your development app.
  • Ship every database change as a new migration in the repository, and try it on the development app before you release. A release is blocked if the database schema changed without a migration, or if a migration production already applied was edited. Add a new migration instead of editing an old one.
  • Plan database changes so they can move forward. When a release changed database files, automatic rollback of production is blocked, and the fix is a new release that works with the current database.
  • Store uploads and other user files in the app's persistent data folder, never inside the code folder. Your coding agent knows where that folder is.

Outside services

  1. Keep test and live accounts apart. Your development app runs with test values, and your production app runs with live values, each saved on its own Configuration page.
  2. Register the exact callback or webhook address 1904 shows for that app, separately for development and production. For payments, follow Connect Stripe to an app.
  3. Use keys with the smallest access that works, from accounts you can revoke.
  4. Expect providers to retry webhooks, and make sure handling the same event twice is harmless.
  5. Show people plain error messages, never raw provider responses or keys.

Before you release

Try the main journey on the development app, including sign-in, permissions, error cases and a phone-sized screen. Then select Create release and Roll out to production. When the rollout finishes, open your production app's address in a fresh browser window and run the same journey there. Check that production is up covers what to look at afterwards.