Open paanvaannd opened 5 years ago
P.S. Issuing the same command, but leaving out the --url-file ~/.vegas/taskwarrior_web/taskwarrior_web-objectives.url
part and instead trying --port 5679
results in the following message:
$ task-web --pid-file ~/.vegas/taskwarrior_web/taskwarrior_web-objectives.pid --log-file ~/.vegas/taskwarrior_web/taskwarrior_web-objectives.log --port 5679
[2019-04-11 16:06:25 -0400] Starting 'taskwarrior-web'...
[2019-04-11 16:06:25 -0400] 'taskwarrior-web' is already running at http://0.0.0.0:5678
Couldn't get a file descriptor referring to the console
Why, if I specify a new log and PID file and port, can I not launch another instance of taskwarrior-web
?
P.P.S. I will open a new issue for this if relevant, but how do I specify a new task data location for taskwarrior-web
to use? E.g. the default location is ~/Documents/.tasks (as specified in ~/.taskrc), but I have a couple other locations (such as ~/Documents/.objectives) that I am trying to use in the OP for the new taskwarrior-web
instances.
I am trying to run multiple instances of
taskwarrior-web
and have each instance use a separate task database (i.e. different rc.data.location).I am using RVM with 2 projects, each with their own gemset: taskwarrior-web and taskwarrior-web-objectives. Both are unmodified.
Running either of them without specifying custom log, PID, and URL files works fine. I copied the default log, PID, and URL files to the same directory (~/.vegas/taskwarrior_web/), slightly changing the filename (e.g. ~/.vegas/taskwarrior_web/taskwarrior_web.pid -> ~/.vegas/taskwarrior_web/taskwarrior_web-objectives.pid, etc.), and retained the file permissions of each. I modified the PID file to a numer 1 higher than the default (11129), the URL to a port 1 higher than the default (5679), and did not modify the log. Running either while trying to specify the aforementioned files results in a (URI::InvalieURIError) as follows: