Heroku
Sorry-cypress installation instructions for Heroku
Basic sorry-cypress Setup
Click the button below to deploy the basic, in-memory, standalone director
service to Heroku.
Full sorry-cypress kit on Heroku
Download and install the Heroku CLI
You must have Docker set up locally to continue
We'll create 3 separate Heroku applications - one for each service. Publicly available docker images of 3 services are available at:
The images are automatically updated on each release and tagged in accordance with GitHub releases.
sorry-cypress uses MongoDB as a persistence layer for storing and retrieving test results. We'll use a free hosted solution to run a managed instance of Atlas MongoDB.
Creating Heroku Application
Create 3 new Heroku application and give them appropriate names
Run the commands to deploy director
, API
and Dashboard
services
Setup MongoDB
Choose the MongoDB provider of your choice and obtain connection details. You will need to set the credentials for newly deployed services.
Heroku has a plenty of add-ons that allows attaching a MongoDB cluster. The recommended way is to attach a MongoDB add-on to director
application and use the same credentials for API
service.
All you'll need is the database name and the access credentials so you can fill the Heroku config variables as we'll see right after. So go ahead to the MongoDB Atlas docs, get your database running and grab that data!
Because the creation of this cluster is very straightforward and well-written in the docs, we'll not cover that here.
Setup Recordings Storage
Please refer to Storage Configuration instructions to configure Recordings Storage (failed tests screenshots and videos) and obtains credentials.
Setup director
Service
director
ServiceSetup API
Service
API
ServiceSetup Dashboard
Service
Dashboard
ServiceReconfigure cypress agents and try running some tests. You will see test results appear in the newly installed dashboard.
Last updated