Configuration settings on Runway are available via environment variables on both builds and running app container(s) alike. This allows you to follow 12-factor principles while running and developing applications.
The available commands:
runway app config ls
: show current configurationrunway app config set
: add/update configurationrunway app config rm
: remove configurationrunway app config import
: import configurationConfiguration changes are not applied to the running app directly.
After runway config set/rm
, run runway app restart
to restart the latest app build
with the new config values.
Alternatively, do another runway app deploy
, for a complete re-build and
deployment.
The following example updates a variable called PORT
:
runway app config set PORT=8080
After deploying your application, you will be able to access the variable in the environment. For more details, please see our example apps.
Easily import or bulk-update your app’s configuration from a local .env
or .direnv
file using:
runway app config import /path/to/file/.env
This ensures seamless integration and keeps your environment variables in sync with Runway.
-y
(or: --noninteractive
, RUNWAY_NONINTERACTIVE=1
) to skip confirmation prompts and ensure smooth execution.