[aegir] Profile amnesia on the command line?
Boris Gordon
email at boris.com.au
Wed Mar 23 08:49:41 EST 2011
Have you tried using provision-install to install the site and then using
hosting-import on the @site to import into the front end?
Boris
On Tue, Mar 22, 2011 at 9:34 PM, Richard George <richard_george at dennis.co.uk
> wrote:
> Also posted to http://community.aegirproject.org/node/492 but got no
> responses there (fair enough, it’s a weird bug) so figured I’d give it
> another shot here:
>
> I've managed to create platforms via both the command line (see
> http://lists.aegirproject.org/pipermail/aegir/2011-January/000026.html)and web interface, and I can get sites to install with a selected profile
> through the web interface, but when I try to install a site via the command
> line it keeps resetting to the default profile. Can anyone see what I'm
> doing wrong here?
>
> I create a site alias:
>
> drush --uri='demo.c.didev.co.uk' provision-save '@site_demo.c.didev.co.uk'
> --context_type=site --platform='@platform_dennis_generic_20110316b'
> --profile='myprofile' --db_server='@server_localhost' --client_email='
> me at domain.com'
>
> and it creates a valid alias file:
>
> cat .drush/site_demo.c.didev.co.uk.alias.drushrc.php
> <?php $aliases['site_demo.c.didev.co.uk'] = array (
> 'context_type' => 'site',
> 'platform' => '@platform_dennis_generic_20110316b',
> 'server' => '@server_master', 'db_server' => '@server_localhost',
> 'uri' => 'demo.c.didev.co.uk',
> 'root' => '/var/aegir/platforms/dennis_generic_20110316b/',
> 'site_path' => '/var/aegir/platforms/dennis_generic_20110316b//sites/
> demo.c.didev.co.uk',
> 'site_enabled' => true,
> 'language' => 'en',
> 'client_email' => 'me at domain.com',
> 'aliases' => array ( ),
> 'redirection' => false,
> 'profile' => 'myprofile', );
>
> However, when I run "drush @hostmaster hosting-import @
> site_demo.c.didev.co.uk" it rewrites the alias file to "profile = default"
> and installs with the default profile!
>
> Now, this is a pain but not a disaster as I can do the initial site
> creating via the web interface and it'll work, but I get apparently related
> errors when trying to migrate on the command line (per instructions at
> http://community.aegirproject.org/node/41) where it appears to not create
> an array of profiles and crashes (I'll post on that separately later) and
> wanted to rule out these problems before I tackle those.
>
> So - am I doing something wrong, or is there just a bug?
>
>
> Thanks,
> Richard
> NOTE: The information in this email is confidential and may be legally
> privileged, unless stated to the contrary. If you are not the intended
> recipient, you must not read, use or disseminate that information.
> Any opinions or comments are personal to the writer and do not represent
> the official view of Dennis Publishing Ltd. If you have received this email
> and are not a named addressee, please contact itdirector at dennis.co.ukimmediately by reply email and then delete this message from your system.
> Please do not copy it or use it for any purpose, or disclose its contents to
> any other person.
> Although this email and any attachments are believed to be free of any
> virus, or other defects, it is the responsibility of the recipient to ensure
> that they are virus free and no responsibility is accepted by Dennis
> Publishing Ltd for any loss or damage arising from the receipt or use
> thereof.
> Company registered in England No. 1138891
> Registered office: 30, Cleveland Street, London, W1T 4JD
>
> _______________________________________________
> aegir mailing list
> aegir at lists.aegirproject.org
> http://lists.aegirproject.org/cgi-bin/mailman/listinfo/aegir
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aegirproject.org/pipermail/aegir/attachments/20110323/3bff899f/attachment.html>
More information about the aegir
mailing list