cubicweb #343506 Have a debian package that initialises a application during install [open]
It would be nice to have a debian package that initialises an application during the install, so that at the end of the installation it would print : now point your browser to http://localhost:8888/ to see your application. | |
priority | minor |
---|---|
type | enhancement |
done in | <not specified> |
closed by | <not specified> |
depends on
similar entities
- PGStaging - setup and maintain your staging environments from your production backups (http://packages.debian.org/sid/pgstaging)
- cubicweb #1168 reorganize debian packages
- TheCubicWebBook #153980 bugs in migration from postgres8.1 to postgres8.3
- cubicweb #607357 debian: add a tasklist for CubicWeb flavours
- cubicweb #344663 easy development setup
[see all]
Comments
-
2009/06/03 12:50, written by nchauvat
-
2009/06/03 13:04, written by alutz
-
2009/06/03 13:34, written by alutz
-
2009/07/22 08:45
-
2010/01/17 15:01, written by nchauvat
-
2010/01/15 17:10
-
2010/01/18 09:32, written by alutz
- apt-get install cubicweb
- answer yes to "add a demo site"
- installer says "Point your browser to http://localhost:8080"
- they test it.
-
2010/01/18 13:20, written by nchauvat
-
2010/01/20 08:08, written by alutz
-
2010/01/22 08:05, written by mailbot
-
2010/01/22 08:24, written by adimascio
-
2010/02/09 11:31
add commentif we decide to do this, it has to be a debconf question. please note that after installing the package, creating a new instance requires a single command "cubicweb-ctl create cubename instancename".
simple is beautiful... working out of the box!
I beg to differ, the create script asks a bunch of questions. I'm looking for a one command operation where all the defaults are used, on debconf questions asked, and an application is created and usable...
The user sees what's it's like, then if he wants to fine tune it he can remove it and create an applications with questions and all.
It can be done partially today in copying the /etc/cubicweb.d/<instance>/ directory and invoking the db-init command in postinst (but still rquires a user input in 3.3.3)
I would rather have an option like cw-ctl create --use-defaults that would ask only what can not be guessed.
I recently added a patch for a new tasksel installation for cubicweb. It maybe the place to put some extra action for user.
An another solution could be to have a new cubicweb-install package which will create a fresh install.
I still think this should be in the default package. This is really intended to the users that just want to "try it out", the only thing they have to do is :
that proposal with the question "add a demo site + what port to listen on" sounds better than the previous proposal. I am fine with it.
Great! I still think that the port could be a standard port decided for the user (expert users can change it afterwards). I think I've never seen a debian package ask for a port number. Packages that do this kind of thing and choose a default port : plone-site, pound, varnish, squid, etc...
I'm really really really unsure about this proposal (esp. having it in the
cubicweb package)
Rationale :
* it only concerns people using Debian / Ubuntu
* In order to be unobstrusive the "add a demo site" should have a fairly low
priority (or be in another package than cubicweb, trust me on that : you
don't want to confuse users installing a CW application which pulls in CW with
a cubicweb demo), which means nobody will ever see the question
* what would you have in the demo site anyway ? Hello world ?
I'm -1 on having this in the standard CW package too. I think what we really need is to make cubicweb-ctl liveserver come back to life. For a toy-demo, let's improve cubicweb-blog to make it a bit fancier (esp. a nicer homepage) and this combined to liveserver should be good enough.
cf. ticket https://www.cubicweb.org/ticket/659339