apache - How do I start plack application on boot -


does know how start plack application on boot.

the os raspbian(raspberry pi). think have run normal user(pi). that's how start manually.

i have tried adding rc.local without success

su pi -c 'cd /path/to/app && plackup -d -p 5000 -r -r ./lib,./t -a ./bin/app.psgi &'

this in-turn used apache , app written in dancer2 if makes difference.

the issue perl 5 environment variables not initialised (which in .bashrc).

so solution run plackup command inside bash -i reads .bashrc or set perl5lib before invoking plackup


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -