Install the CLI. See the install docs.
Log in:
runway login
Add an SSH key. See key setup, or use the shortcut:
runway local key setup
Sometimes, plain HTML (with a touch of CSS) is all you need. Runway lets you build applications without forcing you into a specific framework.
For this guide, we’ll create an empty Git repository containing a public folder and an index.html file to serve as your website.
This setup can be achieved with a series of commands that:
public folder and add an index.html file$ mkdir static-website
$ cd static-website
$ mkdir public/
$ echo 'My website' > public/index.html
Create the app on Runway (this also initializes a git repository, if none exists yet):
$ runway app create
With the structure created, you need to commit your changes:
$ git add -A && git commit -m "Initial commit: my website"
The only step left is to tell Runway that you need a web server, letโs use Nginx:
runway app config set BP_WEB_SERVER=nginx
[build]
[[build.env]]
name = "BP_WEB_SERVER"
value = "nginx"
By setting BP_WEB_SERVER, the build pack will generate a web server configuration for you. This configuration works for almost all situations, but of course you can customize it further.
You can also choose the Apache HTTP Server by setting BP_WEB_SERVER=httpd. For more details, check out our web server documentation.
runway app deploy
Run runway app open to see it live, or check the Runway UI. Check runway app logs if something’s off.