bengillies.net

a blog by Ben Gillies

CGI Install Update

Following on from my original post Running on TiddlyWeb, Part One, there has recently been an update to the index.cgi file to make installing clearer and easier to understand. The new file can be found on github at http://github.com/tiddlyweb/tiddlyweb/blob/master/index.cgi. This simplifies the first stage of the install procedure to the following:

  • Run this script from python.
  • Run this script from the new instance of python created in your home directory.
  • Type easy_install -U tiddlyweb into a command line and hit enter.
  • TiddlyWeb should now be installed. Type twanager instance <instance_name> somewhere in your home directory.
  • Copy index.cgi to somewhere in your public_html folder.
  • Move the tiddlywebconfig.py file from your instance to a different folder.

That first part should be fairly similar to the old method of installing. The main difference comes in how you edit the index.cgi and tiddlywebconfig.py files. So from here, go into index.cgi and change tiddlywebconfig_dir = <path to your tiddlywebconfig.py directory>. Then change os.environ['PYTHON_EGG_CACHE'] = <path to your ".python-eggs" folder>. With virtual python, this is "~/.python-eggs". Also, make sure that the path to python at the top is the path to your virtual python install.

Save that and go into tiddlywebconfig.py. enter the following information:
 'server_store': ['text', {'store_root': '<path to your instance>/store'}],
'server_prefix': '<path to your index.cgi file>',
'server_host': {
'scheme': 'http',
'host': '<your domain name here>',
'port': '80'},


Hopefully, this should make things simpler to understand, and easier to use. So from this point, continue the install as before to get tiddlyweb up and running.

Comments

name:
comment:
Hello,
When I try the twanager instance command, this error message pops out, ERROR: No matching command found.
Any clues?
Cheers,
by yvan
Hi yvan.

Current versions of TiddlyWeb do not support the twanager instance command.

The equivalent is "twinstance". Just run "twinstance name" to create an instance called name.

You may want to check out instructions at http://www.tiddlyweb.com/ as well.

Hope this helps.
by bengillies
Found the problem. easy_install didn't install twinstance but pip as indicated on the http://www.tiddlyweb.com/ did!
Thanks
by yvan