Runway
Runway is built and operated in the EU!

Deploy HTML

First steps

Sometimes, plain HTML (with a touch of CSS) is all you need. Runway lets you build applications without forcing you into a specific framework.

Setup

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:

  1. Create the project directory
  2. Set up the 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

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"

Config

The only step left is to tell Runway that you need a web server, letโ€™s use Nginx:

Runway CLI
runway app config set BP_WEB_SERVER=nginx
project.toml
[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.

Apache Web Server

You can also choose the Apache HTTP Server by setting BP_WEB_SERVER=httpd. For more details, check out our web server documentation.

Deploy to Runway

runway app deploy

Run runway app open to see it live, or check the Runway UI. Check runway app logs if something’s off.