View Issue Details

IDProjectCategoryView StatusLast Update
101WADFCorepublic30 Oct 2008 18:05
Reporterf2f_max Assigned Totimj  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Target Version0.9.2Fixed in Version0.9.2 
Summary101: Can't select different profile from command line
Descriptionit's not possible to use different profile and options within it using wadf-deploy. Always a profile setted in global configuration file is used.

example:

WADF is installed into /home/max/pear/
global configuration file is /home/max/pear/www/Tools_WADF/wadf.conf
local configuration file is /home/max/.wadf/config

in global config there is a line:

profile = local

here is /home/max/.wadf/config:

profile = f2flocal
[local]
vc_base = https://svn.premierit.com/clients
dep_pear_preferred_stability = beta
dep_pear_base_channel = XXXXXXXX@pear.premierithosting.com
dep_pear_base_roles = premier/Premier_Role_Application premier/Premier_Role_Applicationcore
dep_pear_opts_as_macros = php_dir applicationcore_dir
[f2flocal]
vc_base = svn+ssh://max@f2fdev.com/usr/local/svn


when i do (ep is application in my repository):

$ wadf-deploy -v ep
Setting global configuration options from file /home/max/pear/www/Tools_WADF/wadf.conf
File /home/max/pear/www/Tools_WADF/wadf.conf: using profile section 'local'
File /home/max/.wadf/config: using profile section 'local'
Looking for /home/apache/vhosts/ep/wadf.conf...
        Not found
Do you want to deploy database(s) if relevant? This will ERASE the existing database(s) (y/n):
Running svn -r HEAD checkout https://svn.premierit.com/clients/ep/trunk /home/apache/vhosts/ep
svn: PROPFIND request failed on '/clients/ep/trunk'
svn: PROPFIND of '/clients/ep/trunk': 403 Forbidden (https://svn.premierit.com)

Error checking out
$

so it looks like wadf is trying to access https://svn.premierit.com subversion

when i do:

$ wadf-deploy -v -d profile=f2flocal ep

i get the same

when i set

profile = f2flocal

in global config file (/home/max/pear/www/Tools_WADF/wadf.conf), it works correct (accessing SVN svn+ssh://max@f2fdev.com/usr/local/svn)

Additional Informationi think it a bit not correct to select profile in config file (but it's convenient). for example how it should work in this case:

profile = stress_server

[stress_server]
php_config_location_extra = php_stress.ini
profile = my_local
[my_local]
profile = stress_server

i mean using "profile=XXX" more the once is confusing
TagsNo tags attached.

Activities

timj

7 Oct 2008 13:40

manager   ~117

There was an error in your /home/max/.wadf config: you had:

...
profile = f2flocal
...

where it should have been:

...
[globals]
profile = f2flocal
...

However it's true that setting profile from the command line ("-d profile=XXX") doesn't work, so I will fix that.

timj

7 Oct 2008 13:43

manager   ~118

Fixed in SVN r1313

Issue History

Date Modified Username Field Change
7 Oct 2008 12:58 f2f_max New Issue
7 Oct 2008 13:40 timj Note Added: 117
7 Oct 2008 13:40 timj Summary can't select different profile => Can't select different profile from command line
7 Oct 2008 13:43 timj Status new => resolved
7 Oct 2008 13:43 timj Fixed in Version => 0.9.2
7 Oct 2008 13:43 timj Resolution open => fixed
7 Oct 2008 13:43 timj Assigned To => timj
7 Oct 2008 13:43 timj Note Added: 118
7 Oct 2008 13:43 timj Target Version => 0.9.2
30 Oct 2008 18:05 timj Status resolved => closed