Skip to content

Commit

Permalink
Added some documentation about dbconfig-common and debian priorities.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjollnir committed Feb 2, 2011
1 parent 3c933a1 commit c003a53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,16 @@ The version number will be slightly different each time, relative to the value i

### Installing the packages

Make sure that the debian priority is low:
If you're installing a package that's going to use a database on a remote machine, make sure that the debian priority is low:

dpkg-reconfigure debconf

Frontend can be set to anything - dialogue is fine. Priority should be low.
Frontend can be set to anything - dialogue is fine. Priority should be low. This is because of a limitation in dbconfig-common (See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607171)

Before trying to install a package that wants a database (for example symfony2-site-foo-main), the database server must be able to be connected to. The package will not create the database for you.

Note: Theoretically this works with dbconfig-common, and indeed we're using it for other projects, but it hasn't been tested with Symony2. It may be enough to change the apps.yourapp.dbconfig.create parameter to true in packagemanifest.yml to enable this, but it's not yet tested.

Finally its recommended to setup a debian package repository to distribute the packages. This way on the target servers you just need to setup the custom repository via the following line in its apt sources:

deb http://packages.example.com/debian/ sid main
Expand Down

0 comments on commit c003a53

Please sign in to comment.