Thank you Darek, I will give this a try.

On Wed, Sep 2, 2020 at 9:19 AM Darek Bobak <[email protected]> wrote:

> That's how I dit it on Windows:
> 1. npm install -g tiddlywiki (I assume you've already done it)
> 2. Install pm2 - process manager for node.js (https://pm2.keymetrics.io/):
> npm install pm2@latest -g
> 3. Initialise wiki folders:
> tiddlywiki C:\Users\me\path\to\my\wiki1 --init server
> tiddlywiki C:\Users\me\path\to\my\wiki2 --init server
> 4. Create config json files for each wiki (the sample below is for only
> one wiki):
> tw_wiki1.json:
> {
>   "apps" : [{
>     "name"        : "My TiddlyWiki 1",
>     "script"      :
> "C:\\Users\\me\\AppData\\Roaming\\npm\\node_modules\\tiddlywiki\\tiddlywiki.js",
>     "watch"       : true,
>     "cwd"         : "C:\\Users\\me\\AppData\\Roaming\\npm",
>     "args"        : "C:\\Users\\me\\path\\to\\my\\wiki1 --listen
> port=8090",
>     "out_file"    : "/dev/null",
>     "error_file"  : "/dev/null"
>   }]
> }
>
> out_file and error_file are logs location; setting it as /dev/null turns
> off logging.
>
> 5. To run your wiki, execute:
> pm2 start C:\users\me\config\location\tw_wiki1.json
>
> 6. You can start, stop, restart or check status by those commands:
> pm2 start all
> pm2 stop all
> pm2 restart all
> pm2 ls
>
> I believe that on other systems (Linux, MacOS) you'd only have to change
> the paths.
>
> best,
> Darek
> wtorek, 1 września 2020 o 16:02:18 UTC+2 [email protected] napisał(a):
>
>> What OS are you using?  There are some good tmux cheatsheets out there
>> but you can
>>
>> 1) create a new session for each wiki (tmux new -s wiki1 , etc)  then
>> tmux attach -t wiki1; run the wiki; ctrl-b then d to detach; repeat for
>> each wiki
>>
>> 2) create a new session tmux new -s wiki ; then attach ; run wiki1; press
>> ctrl-b then "quotion marks" to create a split screen! : run wiki2 then :
>> press ctrl-b then "percentage" and get a vertical split!!!!!! and run wiki3
>> in that then ctrl-b then d to detach
>> ;
>>
>> On Monday, August 31, 2020 at 12:30:52 AM UTC-4, Morgaine O'Herne wrote:
>>
>>> Thanks Rob. I think #2 is the best I can do for the wikis on my own
>>> computer, given my current skill level.  If someone could simplify this for
>>> me, I'd be most grateful. Thanks.
>>>
>>> On Sun, Aug 30, 2020 at 9:20 PM Rob Hoelz <[email protected]> wrote:
>>>
>> Hello!
>>>>
>>>> This is how I approach that:
>>>>
>>>>   1) Each wiki has a script in the same directory as tiddlywiki.info -
>>>> all it does is check that the installed TiddlyWiki version matches what's
>>>> in package-lock.json, set the TIDDLYWIKI_PORT environment variable, and
>>>> invoke ./node_modules/.bin/tiddlywiki.  It's the TIDDLYWIKI_PORT part
>>>> that's important here!
>>>>   2) I have a tmux session with a single window per wiki - in each of
>>>> those windows, I run ./tiddlywiki --listen port=TIDDLYWIKI_PORT.  This way
>>>> I don't have to remember which port I use for which wiki!
>>>>   3) I have custom DNS so that personal.wiki, games.wiki, etc all point
>>>> to my machine running the various node processes.
>>>>   4) I have nginx set up to proxy to each node process - my config for
>>>> a single wiki looks like this:
>>>> https://gist.github.com/hoelzro/9a1706b2bf96c4836dfbb0c3e0afae87
>>>>
>>>> -Rob
>>>>
>>>> On Sunday, August 30, 2020 at 9:37:09 PM UTC-5 [email protected]
>>>> wrote:
>>>>
>>>>> Hi all. I have 3 wikis running on node.js on my computer. They each
>>>>> connect through a different port number. I want to be able to access any 
>>>>> of
>>>>> them in the browser at any time without pulling up the terminal. I believe
>>>>> I remember doing this before, but I don't know how. How do I make my wikis
>>>>> permanent?
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "TiddlyWiki" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/tiddlywiki/XS0lO3_FSlo/unsubscribe.
>>>>
>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>
>>>
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/tiddlywiki/f6416ea3-ff81-4a89-b5ee-5adccecc83e6n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/tiddlywiki/f6416ea3-ff81-4a89-b5ee-5adccecc83e6n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/XS0lO3_FSlo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/11e1e3da-7516-4f2b-be6a-802b43def3e2n%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/11e1e3da-7516-4f2b-be6a-802b43def3e2n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CABVjSOE6qAMP2MgS4o29XLcOOWgkgh0id%2BTfe5BP%3DBU1e9T7kw%40mail.gmail.com.

Reply via email to