My personal tiddlywiki don't load themes

266 views
Skip to first unread message

Châu Thân Đức Hoàng

unread,
Jan 9, 2015, 2:07:38 AM1/9/15
to tiddl...@googlegroups.com
I setup my personal tiddlywiki on OpenShift. But it don't load themes.
This is my code to start it.
var $tw = require("./boot/boot.js").TiddlyWiki();
$tw.boot.argv = [
  process.env.OPENSHIFT_DATA_DIR,
  "--server",
  process.env.OPENSHIFT_NODEJS_PORT,
  "$:/core/save/all",
  "text/plain",
  "text/html",
  "usename",
  "password",
  process.env.OPENSHIFT_NODEJS_IP,
];
$tw.boot.boot();

Please help me.
Thanks.

PS: I don't know about argurement of $tw. Where do I read it?

Jeremy Ruston

unread,
Jan 9, 2015, 2:30:16 PM1/9/15
to TiddlyWiki
Hi Châu

That's an unusual way to start TiddlyWiki. I'm guessing that you modded tiddlywiki.js from the TW5 repo?

Anyhow, have you initialised your data directory? To be a valid wiki folder you need to create a tiddlywiki.info file. The usual way of doing that is via the command line:

tiddlywiki my_data_dir --init server

Best wishes

Jeremy

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

TJ Hoeft

unread,
Apr 10, 2015, 7:51:53 PM4/10/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hello everyone,
I'm trying to do a similar deployment in OpenShift based on the blog:


I ended up with the same issue with the themes.  
TJ

TJ Hoeft

unread,
Apr 11, 2015, 1:13:56 AM4/11/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hello,
I'm still wrestling to figure out themes.  I looked at the boot.js and found a config block as shown below:

config: { // Configuration overridables
 pluginsPath
: "../plugins/",
 themesPath
: "../themes/",
 languagesPath
: "../languages/",
 editionsPath
: "../editions/",
 wikiInfo
: "./tiddlywiki.info",
 wikiPluginsSubDir
: "./plugins",
 wikiThemesSubDir
: "./themes",
 wikiLanguagesSubDir
: "./languages",
 wikiTiddlersSubDir
: "./tiddlers",
 wikiOutputSubDir
: "./output",
 jsModuleHeaderRegExpString
: "^\\/\\*\\\\(?:\\r?\\n)((?:^[^\\r\\n]*(?:\\r?\\n))+?)(^\\\\\\*\\/$(?:\\r?\\n)?)",
 fileExtensionInfo
: Object.create(null), // Map file extension to {type:}
 contentTypeInfo
: Object.create(null), // Map type to {encoding:,extension:}
 pluginsEnvVar
: "TIDDLYWIKI_PLUGIN_PATH",
 themesEnvVar
: "TIDDLYWIKI_THEME_PATH",
 languagesEnvVar
: "TIDDLYWIKI_LANGUAGE_PATH",
 editionsEnvVar
: "TIDDLYWIKI_EDITION_PATH"
 
}

I have a locally generated TW5 server instance.  I was able to copy its "tiddlywiki.info" into my OpenShift staging area within the "boot" subdirectory. (I also copied the entire "tiddlers" subdir there too.)  I added and checked in my changes into Git and pushed them to OpenShift.  After restarting NodeJS on OpenShift, I was able to see my content.

Since the "tiddlywiki mynewwiki --init server" mainly seems to generate a "tiddlywiki.info", I assumed that having this file referenced from the code would fix the "Themes Issue".  No success.

Any ideas?

Thanks ahead of time,
TJ

Jeremy Ruston

unread,
Apr 12, 2015, 8:48:44 AM4/12/15
to TJ Hoeft, TiddlyWiki
Hi TJ

Am I correct in understanding that the problem you're experiencing is that you're seeing an unstyled but otherwise functional TiddlyWiki in the browser?

The steps you describe about moving a tiddlywiki.info file into the boot folder of the TW5 repo are not correct. The TW5 repo holds the code; your data would ordinarily be stored in an entirely different folder. 

> Since the "tiddlywiki mynewwiki --init server" mainly seems to generate a "tiddlywiki.info", I assumed that having this file referenced from the code would fix the "Themes Issue".  No success.

The init command does indeed just copy a tiddlywiki.info file into your wiki folder. I don't understand why it's not working for you, though? Why aren't you just creating a blank wiki folder within process.env.OPENSHIFT_DATA_DIR?

Best wishes

Jeremy.




TJ Hoeft

unread,
Apr 14, 2015, 11:33:44 AM4/14/15
to tiddl...@googlegroups.com, tj.h...@gmail.com, jeremy...@gmail.com
Hi Jeremy,
Thank you for the idea!  I will tinker around a bit and I'll let you know the results.
TJ

Sean Kelley

unread,
Feb 12, 2016, 3:21:16 PM2/12/16
to TiddlyWiki, tj.h...@gmail.com, jeremy...@gmail.com
Hi TJ,

Any luck with this? I have done as Jeremy suggested and set up a separate wiki folder. I provide an absolute path to the folder in server.js and am still not able to get the themes/plugins to work.

I receive an error each time that the tiddlywiki.info file is missing, even though I am pointing it to the correct folder...no idea what is going on.

- Sean

Tobias Beer

unread,
Feb 13, 2016, 3:28:09 AM2/13/16
to TiddlyWiki, tj.h...@gmail.com, jeremy...@gmail.com
Hi Sean,
 
I receive an error each time that the tiddlywiki.info file is missing, even though I am pointing it to the correct folder...no idea what is going on.

Perhaps an issue of a missing / superfluous (back-)slash? I assume that folder has a tiddlywiki.info in it.

Best wishes,

Tobias.

TJ Hoeft

unread,
Feb 13, 2016, 9:29:01 AM2/13/16
to Sean Kelley, TiddlyWiki, jeremy...@gmail.com
Hi Sean,
Unfortunately, no. I ended up getting frustrated that I couldn't get things to work. Ultimately, I have other things competing for my time and had to set it aside. The best I could get was a working but on rendered version. Given more time, this is one of those problems that I would write a script for to validate the install. If I do figure it out, I will be happy to post my progress.
Good luck to you,
TJ

BJ

unread,
Feb 14, 2016, 4:38:27 AM2/14/16
to TiddlyWiki, tj.h...@gmail.com, jeremy...@gmail.com
Hi Sean,

have you tried to build one of the standard tw editions by replacing

$tw.boot.argv = [
  process.env.OPENSHIFT_DATA_DIR,

with

$tw.boot.argv = [ "./editions/empty",

all the best
BJ

Sean Kelley

unread,
Feb 15, 2016, 12:25:31 AM2/15/16
to TiddlyWiki, tj.h...@gmail.com, jeremy...@gmail.com
Hi Tobias,

Thanks for the thought. I double checked and just used the pwd to point to the folder, so presumably no issues there. Even tried a trailing / and /. with no luck.

Cheers,

Sean

Sean Kelley

unread,
Feb 15, 2016, 12:28:03 AM2/15/16
to TiddlyWiki, tj.h...@gmail.com
Hi BJ,

Thanks for the suggestion. I tried this and a few variations, still with no luck. 

Cheers,

Sean

Sean Kelley

unread,
Feb 15, 2016, 11:09:27 AM2/15/16
to tiddl...@googlegroups.com
Realized that the issue may be with using the 5.1.12 pre-release, so I rolled back my version to TW 5.1.11 and everything now works.

--
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/2DmWNbPyO3Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages