Skip to content

Latest commit

 

History

History

fly-io

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Running prerendercloud-server on Fly.io

To run prerendercloud-server from https://fly.io/

You need:

  1. an authenticated fly.io account (sign up on fly.io and install the flyctl tool, https://fly.io/docs/getting-started/installing-flyctl/)
  2. a Dockerfile
  3. fly.toml (typically auto-generated by your authenticated flyctl CLI, if you use the one included here you must modify the app field)
  4. build directory with index.html and JS/CSS files

Then apply your configuration preferences:

  1. specify any options, e.g. --enable-middleware-cache, --ignore-all-query-params, etc. in Dockerfile
  2. optionally remove or edit _redirects and _whitelist.js
  3. if using the fly.toml file here, modify the app and PRERENDER_TOKEN fields

Then build the Docker container and deploy to Fly.io:

  1. bash ./deploy-to-fly.sh