Add this URL as a bookmark, with 'dev' replaced with the environment to switch to. Repeat for each env.
javascript:(/** @version 0.5.2 */function() {document.cookie='env=dev;path=/;';})()
server { | |
location / { | |
set $env "dev"; | |
if ($http_cookie ~* "env=([^;]+)(?:;|$)") { | |
set $env $1; | |
} | |
fastcgi_param ENVIRONMENT $env; | |
} | |
} | |
} |