superluminal: (Default)
¿&⚧⅋? ([personal profile] superluminal) wrote in [site community profile] dw_dev2010-02-19 08:53 pm
Entry tags:

a small script for dreamwidth development

dw is a program I use for managing local Dreamwidth installations. It provides handy shortcuts for invoking cvsreport.pl, and it can install Dreamwidth from scratch or upgrade an existing installation. Additionally, it can automatically run Dreamwidth under an unprivileged Apache process; this means you only need to make a single change to your normal system configuration[1], and in theory you shouldn't even need root privileges to run Dreamwidth this way.

To use it, simply install the script as "dw" somewhere in your $PATH; dw help will show usage information.

[1] Dreamwidth apparently doesn't like having a port number in $LJ::DOMAIN, so you will have to set up a reverse-proxy on port 80.

afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-03-02 03:40 pm (UTC)(link)
I really like this script. I just set up another dev environment which runs on Ubuntu 9.10 instead of Ubuntu 9.04, and the installation went a lot more streamlined than I'm used to.

Had to restart the process a couple of times because of misinstalled modules (GTop!) which were causing checkconfig to fail, so I had cause to appreciate previously-entered data populating the dialog when the script is run again.

I did run across one issue however: the user created for the DB uses your current system user, $(USER), rather than the one you entered via the dialog ($DW_DBUSER), so if the two don't match, the installation fails and you have to delete everything (because bootstrap will fail if you try to init when it already exists), and then start from scratch.


With this script in place, I bet we could cut out at least three-fourths of the instructions to install Dreamwidth from scratch, and only GTop should be the most difficult part of the process...
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-03-15 02:34 pm (UTC)(link)
Great -- thanks.