The question of "how do I deploy a seaside or web velocity application" comes up a fair amount, so I thought I'd post the steps I use. For Web Velocity, we have videos on this here.
Once I get the image and VM up to the server, I do the following:
- For Seaside/VW apps, I use command line arguments to filein a loader script
- For Web Velocity, that directory is called "autoload" - just put the parcels there. It will load things alphabetically, so arrange things such that things work under that constraint.
- Set up some Apache rules for the application - here's an example for a path like /myApplication, where the Seaside/Velocity app has been registered as myApplication
RewriteRule ^myApplication(.*) http://127.0.0.1:7777/myApplication$1 [P]
ProxyPassReverse /myApplication http://127.0.0.1:7777/myApplication
And if you want a simple url that redirects there:
RewriteRule /pathIWantToMakePublic /myApplication/RegisteredSeasideNameHere
And that's pretty much that. To run the application, I set up a script with this line in it to start the image:
./visual myImage.im -headless &
Technorati Tags:
smalltalk, seaside, deployment