0

我正在使用 DigitalOcean 终端尝试运行 Phinx 迁移vendor/bin/phinx migrate -e development,但我收到错误“权限被拒绝”

我试过用不同的方式编写命令,我确保我的数据phinx.php是正确的。

我真的被卡住了,有人有这方面的经验吗?

完整命令:

root@webportal-project-name:/home/project/project-name# vendor/bin/phinx migrate -e development

错误:

-bash:供应商/bin/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'
];

4

0 回答 0