This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Sometimes when I am out of office and my client needs some urgent changes, I want to be able to edit code right in October's backend.
But I also want to keep safe mode on in production environment!
'IP based' development environment:
- I have created
/config/dev
directory with config files edited to suit my development environment - I have added these lines to my
.htaccess
for an October project:
<IfModule mod_setenvif.c>
SetEnvIf Remote_Addr "^127.0.0.1$" APP_ENV="dev"
SetEnvIf Remote_Addr "^::1$" APP_ENV="dev"
SetEnvIf Remote_Addr "^111.222.333.444$" APP_ENV="dev"
</IfModule>
Replace IP on last line with your office/home fixed IP address.
Away from office/home:
I have Synology Disk Station at my office with configured VPN (PPTP) so I can connect to office from iPhone/iPad. Through VPN connection I have my office's IP and I am able to remotely edit code in October's backend.
Not a big deal but maybe someone finds it useful :)
Last updated
1-1 of 1