Phinx migration not running on server after commit in SVN repository
up vote
0
down vote
favorite
We have a SVN repository in a remote server and I have a copy of it in my local machine. We are using phinx for database migrations. So locally I create a migration and run it so I am sure the table is created and it does. The migration file is tracked by the repository. So I commit it and then trying to run the migration on the remote server. But the migration seems not to run. All I am getting is this message and then nothing
Phinx by Rob Morgan. version 0.3.4
using config file ./phinx.php
using config parser php
using migration path
/srv/www/subversion/MyProject/trunk/www/src/db-migrations
using environment production
using adapter mysql
using database MyDatase
The project in the remote server is located in /srv/wwww/subversion/MyProject/trunk/www. In the remote server I run the migration inside the www folder like
php htdocs/vendor/robmorgan/phinx/bin/phinx migrate -c phinx.php -e production
EDIT: the phinxlog in the database does not show my migration at all. Last one set to 20 days ago
svn phinx
add a comment |
up vote
0
down vote
favorite
We have a SVN repository in a remote server and I have a copy of it in my local machine. We are using phinx for database migrations. So locally I create a migration and run it so I am sure the table is created and it does. The migration file is tracked by the repository. So I commit it and then trying to run the migration on the remote server. But the migration seems not to run. All I am getting is this message and then nothing
Phinx by Rob Morgan. version 0.3.4
using config file ./phinx.php
using config parser php
using migration path
/srv/www/subversion/MyProject/trunk/www/src/db-migrations
using environment production
using adapter mysql
using database MyDatase
The project in the remote server is located in /srv/wwww/subversion/MyProject/trunk/www. In the remote server I run the migration inside the www folder like
php htdocs/vendor/robmorgan/phinx/bin/phinx migrate -c phinx.php -e production
EDIT: the phinxlog in the database does not show my migration at all. Last one set to 20 days ago
svn phinx
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
We have a SVN repository in a remote server and I have a copy of it in my local machine. We are using phinx for database migrations. So locally I create a migration and run it so I am sure the table is created and it does. The migration file is tracked by the repository. So I commit it and then trying to run the migration on the remote server. But the migration seems not to run. All I am getting is this message and then nothing
Phinx by Rob Morgan. version 0.3.4
using config file ./phinx.php
using config parser php
using migration path
/srv/www/subversion/MyProject/trunk/www/src/db-migrations
using environment production
using adapter mysql
using database MyDatase
The project in the remote server is located in /srv/wwww/subversion/MyProject/trunk/www. In the remote server I run the migration inside the www folder like
php htdocs/vendor/robmorgan/phinx/bin/phinx migrate -c phinx.php -e production
EDIT: the phinxlog in the database does not show my migration at all. Last one set to 20 days ago
svn phinx
We have a SVN repository in a remote server and I have a copy of it in my local machine. We are using phinx for database migrations. So locally I create a migration and run it so I am sure the table is created and it does. The migration file is tracked by the repository. So I commit it and then trying to run the migration on the remote server. But the migration seems not to run. All I am getting is this message and then nothing
Phinx by Rob Morgan. version 0.3.4
using config file ./phinx.php
using config parser php
using migration path
/srv/www/subversion/MyProject/trunk/www/src/db-migrations
using environment production
using adapter mysql
using database MyDatase
The project in the remote server is located in /srv/wwww/subversion/MyProject/trunk/www. In the remote server I run the migration inside the www folder like
php htdocs/vendor/robmorgan/phinx/bin/phinx migrate -c phinx.php -e production
EDIT: the phinxlog in the database does not show my migration at all. Last one set to 20 days ago
svn phinx
svn phinx
edited Nov 10 at 11:18
asked Nov 10 at 10:53
Stefanos
34
34
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
It turns out that you need to run the migration as a specific user, the one defined in the project's config.php, and not as root. So in my case it was:
sudo -u USER php htdocs/vendor/robmorgan/phinx/bin/phinx migrate -c phinx.php -e production
Worked like a charm!
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
It turns out that you need to run the migration as a specific user, the one defined in the project's config.php, and not as root. So in my case it was:
sudo -u USER php htdocs/vendor/robmorgan/phinx/bin/phinx migrate -c phinx.php -e production
Worked like a charm!
add a comment |
up vote
0
down vote
It turns out that you need to run the migration as a specific user, the one defined in the project's config.php, and not as root. So in my case it was:
sudo -u USER php htdocs/vendor/robmorgan/phinx/bin/phinx migrate -c phinx.php -e production
Worked like a charm!
add a comment |
up vote
0
down vote
up vote
0
down vote
It turns out that you need to run the migration as a specific user, the one defined in the project's config.php, and not as root. So in my case it was:
sudo -u USER php htdocs/vendor/robmorgan/phinx/bin/phinx migrate -c phinx.php -e production
Worked like a charm!
It turns out that you need to run the migration as a specific user, the one defined in the project's config.php, and not as root. So in my case it was:
sudo -u USER php htdocs/vendor/robmorgan/phinx/bin/phinx migrate -c phinx.php -e production
Worked like a charm!
answered Nov 10 at 12:05
Stefanos
34
34
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53238214%2fphinx-migration-not-running-on-server-after-commit-in-svn-repository%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password