On Monday, October 20, 2014 7:05:51 PM UTC+2, Rick Williams wrote:
>
> 1) I modified the tiddlywiki.info as you suggested:
>
> {
> "build": {
> "index": [
> "--savetiddlers","[tag[external-image]]","images",
>
> "--setfield","[tag[external-image]]","_canonical_uri","$:/core/templates/canonical-uri-external-image","text/plain",
> "--setfield","[tag[external-image]]","text","","text/plain",
> "--rendertiddler","$:/core/save/all","index.html","text/plain"]
> },
> "plugins": [
> "tiddlywiki/tiddlyweb",
> "tiddlywiki/filesystem",
> "tiddlywiki/codemirror",
> "tiddlywiki/highlight"
> ],
> "themes": [
> "tiddlywiki/vanilla",
> "tiddlywiki/snowwhite"
> ]
> }
>
looks good to me.
> 2) I added tags to my existing png and jpg tiddlers (manually).
>
> 3) I made the /images directory
> 4) I ran the /usr/bin/node /usr/bin/tiddlywiki /home/ncemonwiki/emonwiki
> --output /home/ncemonwiki/emonwiki --build index
>
ok
> I then started the server and tried it.
>
Did you do the import step? So import the small index.html into the server.
You could select all. ... You did a backup right?
>
> My load time is now about 37 seconds. So it's better.
>
> But, my index is still pretty large:
>
> [ncemonwiki@stratus emonwiki]$ ls -alh
> total 1.9M
> drwxr-xr-x. 4 ncemonwiki ncemonwiki 89 Oct 20 11:45 .
> drwx--x--x. 5 ncemonwiki ncemonwiki 4.0K Oct 8 12:57 ..
> -rwxr-xr-x. 1 ncemonwiki ncemonwiki 329 Sep 26 14:56 .htpasswd
> drwxrwxr-x. 2 ncemonwiki ncemonwiki 4.0K Oct 20 11:45 images
> -rw-rw-r--. 1 ncemonwiki ncemonwiki 1.9M Oct 20 11:45 index.html
>
1.9 MByte ... that's ok. It should be loaded in about a second or so.
> drwxr-xr-x. 2 ncemonwiki ncemonwiki 4.0K Oct 20 12:43 tiddlers
> -rw-r--r--. 1 ncemonwiki ncemonwiki 618 Oct 20 11:45 tiddlywiki.info
> [ncemonwiki@stratus emonwiki]$
>
> My tiddlers did seem to get rewritten after the build:
>
I'm not sure, what happens if you do the build several times.
If the tiddlers already have the _canonical_uri ... So take care.
>
> [ncemonwiki@stratus tiddlers]$ ls -al | grep png
> -rw-r--r--. 1 ncemonwiki ncemonwiki 181 Oct 20 11:45
> BlockBDPU_Disabled_Port.png.tid
> -rw-r--r--. 1 ncemonwiki ncemonwiki 175 Oct 20 11:45
> BlockBDPUGuard_event.png.tid
> -rw-r--r--. 1 ncemonwiki ncemonwiki 185 Oct 20 11:45
> BlockBDPUGuard_event_rule.png.tid
> -rw-r--r--. 1 ncemonwiki ncemonwiki 191 Oct 20 11:45
> BlockBPDUGuard_Ticket_Sample.png.tid
> -rw-r--r--. 1 ncemonwiki ncemonwiki 193 Oct 20 11:45
> BPDUGuard_event_rule_criteria.png.tid
> -rw-r--r--. 1 ncemonwiki ncemonwiki 197 Oct 20 11:45 Cisco IOS Device
> Location.png.tid
> -rw-r--r--. 1 ncemonwiki ncemonwiki 165 Oct 20 11:45 emonUtilBox.png.tid
> -rw-r--r--. 1 ncemonwiki ncemonwiki 171 Oct 20 11:45
> MajorMCServers.png.tid
> -rw-r--r--. 1 ncemonwiki ncemonwiki 12656 Oct 20 12:46 soi_image001.png.tid
> [ncemonwiki@stratus tiddlers]$ cat BlockBDPU_Disabled_Port.png.tid
>
_canonical_uri: ./images/BlockBDPU_Disabled_Port.png
> created: 20141001175956296
> modified: 20141020153521294
> tags: external-image
> title: BlockBDPU_Disabled_Port.png
> type: image/png
>
> [ncemonwiki@stratus tiddlers]$
>
> However, notice the file soi_image001.png.tid. This was a new import.
>
Tiddlywiki server doesn't use the "build" info. So it doesn't know about
the images directory to store new images.
The TW server at the moment is a very very basic server to make TW
development easier.
---------
I'm still concerned about the 37 seconds. ...
If you open the dev console in the browser F12
Select the network tab and reload the page.
The timeline should show you, which element needs the time.
Sorry but I'm running out of ideas, atm :)
It probably is something really simple, we just can't see it.
@community: Anyone else? any ideas? nginx experts ?:)
-m
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.