Allow to change config file path #117

Closed
dextervip opened this Issue May 20, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@dextervip

Hi,

I am not sure if this feature is already implemented. I couldn't find it. I am setting up doctrine migrations on top of silex and I have to pass --configuration argument everytime I run it at commandline or I have to change working dir to the same as migration configuration file.

php console.php migrations:status --configuration=config/migrations.yml
or
chdir(DIR.'/config');

It would be nice to allow configure it before running commandline.

@mikeSimonson

This comment has been minimized.

Show comment Hide comment
@mikeSimonson

mikeSimonson Feb 15, 2015

Member

@dextervip Can you provide a PR so that it works like the connection configuration ?

Member

mikeSimonson commented Feb 15, 2015

@dextervip Can you provide a PR so that it works like the connection configuration ?

@mikeSimonson mikeSimonson added this to the 1.0 milestone Feb 15, 2015

@dextervip

This comment has been minimized.

Show comment Hide comment
@dextervip

dextervip Feb 16, 2015

@mikeSimonson I can't remember what was my real issue but configuration argurment works fine but you must pass the absolute path.
php app/console.php migrations:migrate --configuration=c:/htdocs/myproject/app/config/migrations.yml

However I have been using chdir(DIR.'/config') in the console script file.

@mikeSimonson I can't remember what was my real issue but configuration argurment works fine but you must pass the absolute path.
php app/console.php migrations:migrate --configuration=c:/htdocs/myproject/app/config/migrations.yml

However I have been using chdir(DIR.'/config') in the console script file.

@mikeSimonson

This comment has been minimized.

Show comment Hide comment
@mikeSimonson

mikeSimonson Feb 16, 2015

Member

@dextervip Where did you make that change (file and line number) ?

Are you sure you run on the last version of doctrine migration ?

Member

mikeSimonson commented Feb 16, 2015

@dextervip Where did you make that change (file and line number) ?

Are you sure you run on the last version of doctrine migration ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment