This helped me to debug a failing test, that was only happening on the CircleCI Server.
How to do it?
Go to Details Job Page on the Circle CI app and re-run the job as
Rerun Job with SSH.
You should be able to find an additional step called
Enable SSH, just expand it to see a command similar to this
ssh -p 64625 email@example.com with minor differences (the port number and IP address will be different). Copy the command into your terminal.
Paste it and append this
-L 3000:localhost:4000. With this, every request happening on the port
4000(CircleCI server) will be forwarded to my local computer in the port
3000, so my local browser can reach the CircleCI server directly.
$ ssh -p 64625 firstname.lastname@example.org -L 3000:localhost:4000
Lastly, change of directory, go to your application folder and serve your app in port 4000.
$ cd my-app-directory && <command to serve your app>
In this example, I ran
yarn run devwhich runs a server on the port
Go to the browser and visit the