¿&⚧⅋? (
superluminal) wrote in
dw_dev2010-02-19 08:53 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
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.
no subject
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...
no subject
no subject