- Create a
.env
file, using.sample-env
as a template
- Configure Travis CI for your project
- Create an environment variable named
$PROD_ENV
containing all of the relevant public environment variables for your project (found in.env
). These will be bundled by Webpack during the CI process. It should be formatted as a single line, using\n
to indicate line breaks, ex:NODE_ENV=development\nAPP_NAME=strap\nHOST=localhost\nPORT=3030...
- Using
now add secret
, add all the relevant private environment variables fromnow.json
, ex:now add secret strap_jwt_secret <token>