I'm using the DigitalOcean terminal to try run a Phinx migration vendor/bin/phinx migrate -e development
but I get the error "permission denied"
I have tried writing the command in different ways, I have made sure the data in my phinx.php
is correct.
I'm really stuck, anyone have any experience with this?
Full Command:
root@webportal-project-name:/home/project/project-name# vendor/bin/phinx migrate -e development
Error:
-bash: vendor/bin/phinx: Permission denied
Phinx.php:
<?php
return
[
'paths' => [
'migrations' => '%%PHINX_CONFIG_DIR%%/db/migrations',
'seeds' => '%%PHINX_CONFIG_DIR%%/db/seeds'
],
'environments' => [
'default_migration_table' => 'phinxlog',
'default_environment' => 'development',
'production' => [
'adapter' => 'mysql',
'host' => 'localhost',
'name' => 'production_db',
'user' => 'root',
'pass' => '',
'port' => '3306',
'charset' => 'utf8',
],
'development' => [
'adapter' => 'mysql',
'host' => 'localhost',
'name' => 'customer_portal',
'user' => 'root',
'pass' => 'pK74He7NbqvNyFxz',
'port' => '3306',
'charset' => 'utf8',
],
'testing' => [
'adapter' => 'mysql',
'host' => 'localhost',
'name' => 'testing_db',
'user' => 'root',
'pass' => '',
'port' => '3306',
'charset' => 'utf8',
]
],
'version_order' => 'creation'
];