I’ve set up and provisioned 2 servers, one for staging and another one for production environment. I’ve also ran the deploy script for the staging environment.
Now, I’m trying to access my site via ssh tunnel:
$ ssh -L4545:localhost:80 -p 22 admin@<server-IP>
but when I visit: http://localhost:4545 there is nothing ( “This page isn’t working”).
Why are you using a tunnel in the first place for staging?
Staging should be as close as possible to the production environment,
including HTTP/HTTPS ports and setup.
Wouldn’t it be a better approach to just password protect the whole server or sites individual (e.g. an “Under construction”/“Coming soon” plugin)?
Why are you using a tunnel in the first place for staging?
Staging should be as close as possible to the production environment,
including HTTP/HTTPS ports and setup.
I don’t want to have the staging env open to the public. I just uploaded to staging.mysite.com and it’s open…Why? I don’t want that.
Wouldn’t it be a better approach to just password protect the whole server
Do you mean with “Bedrock Site protect” or is there something else?