You are not logged in.

#1 2008-12-08 19:17:11

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Web app packages

- if i have webapp foo (some html/php/python/ruby/... code) and want to package it, where should it go? /usr/share/<foo> ; ln -s /usr/share/<foo> /srv/http/<foo> ?
- what if that webapp needs a configfile? /etc/<foo>/*? and symlink to it from /srv/http/<foo> ?
- what if the webapp needs a database with some default data? optdepend on mysql? and make an .sql file that creates database <foo> and ask user to execute it on the database he/she prefers?

I'm seeing various approaches and couldn't find a solid answer...
http://repos.archlinux.org/viewvc.cgi/c … ev=CURRENT
http://bbs.archlinux.org/viewtopic.php?id=54474
http://bugs.archlinux.org/task/10920

Last edited by Dieter@be (2008-12-08 19:17:28)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#2 2008-12-08 23:48:38

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: Web app packages

Personally, I find the concept of packaging web software weird. Maybe this approach can work for software with a fixed number of files, like phpmyadmin, but it's not straightforward to install/upgrade/remove web applications (especially database-backed ones) in other cases.

My suggestion, with a few exceptions, is to leave web applications out of the repos.

Last edited by foutrelis (2008-12-08 23:49:12)

Offline

Board footer

Powered by FluxBB