[Dancer-users] %ENV different when run via plackup

Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 daxim at cpan.org
Tue May 1 20:26:06 CEST 2012


> Where do I define the environment variable so that it is set no
> matter how the application is run

Learn to work with your shell. I assume you have bash.

    # for this command only
    HTTP_X_FORWARDED_PROTOCOL=https plackup …

    # for all further commands in this session
    export HTTP_X_FORWARDED_PROTOCOL=https
    plackup …

For production purposes, edit `/etc/profile.local` or
`/etc/profile.d/plackup.sh`.

Also see: env(1)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20120501/75126d5c/attachment.pgp>


More information about the Dancer-users mailing list