Heroku 上的 Sylius,获取 "phpcr_workspaces" 不存在
Sylius on Heroku, getting "phpcr_workspaces" does not exist
我正在尝试在 Heroku 上安装 Sylius。这是我所做的(摘自 https://www.christophh.net/2013/10/19/sylius-on-heroku/):
- 创建一个 Heroku 应用,添加一个 Postgres 数据库
composer create-project -s dev sylius/sylius-standard myAppName
- 将我的应用推送到 Heroku
heroku run php -d memory_limit=-1 app/console
sylius:install
在安装过程中,我使用的是在步骤 1 中创建的数据库,所以我回答 N
到
It appears that your database already exists. Would you like to reset it?
我的安装崩溃:
[PHPCR\RepositoryException] Unexpected error talking to the backend:
An exception occurred while executing 'SELECT 1 FROM phpcr_workspaces
WHERE name = ?' with params ["default"] : SQLSTATE[42P01]:
Undefined table: 7 ERROR: relation "phpcr_workspaces" does not exist
LINE 1: SELECT 1 FROM phpcr_workspaces WHERE name =
似乎脚本希望 phpcr_workspaces
table 存在的某处,但存在 none。有人知道吗?
我在这里找到了解决方案:
基本上我需要手动初始化条令表和工作区:
heroku run "php app/console doctrine:phpcr:init:dbal --force"
heroku run "php app/console doctrine:phpcr:workspace:create default"
heroku run "php app/console doctrine:phpcr:repository:init"
heroku run "php app/console -v -n doctrine:phpcr:fixtures:load"
注意:要继续安装 Sylius,我还必须创建 Sylius 表:
php app/console doctrine:schema:update --force
我正在尝试在 Heroku 上安装 Sylius。这是我所做的(摘自 https://www.christophh.net/2013/10/19/sylius-on-heroku/):
- 创建一个 Heroku 应用,添加一个 Postgres 数据库
composer create-project -s dev sylius/sylius-standard myAppName
- 将我的应用推送到 Heroku
heroku run php -d memory_limit=-1 app/console sylius:install
在安装过程中,我使用的是在步骤 1 中创建的数据库,所以我回答 N
到
It appears that your database already exists. Would you like to reset it?
我的安装崩溃:
[PHPCR\RepositoryException] Unexpected error talking to the backend: An exception occurred while executing 'SELECT 1 FROM phpcr_workspaces WHERE name = ?' with params ["default"] : SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "phpcr_workspaces" does not exist LINE 1: SELECT 1 FROM phpcr_workspaces WHERE name =
似乎脚本希望 phpcr_workspaces
table 存在的某处,但存在 none。有人知道吗?
我在这里找到了解决方案:
基本上我需要手动初始化条令表和工作区:
heroku run "php app/console doctrine:phpcr:init:dbal --force"
heroku run "php app/console doctrine:phpcr:workspace:create default"
heroku run "php app/console doctrine:phpcr:repository:init"
heroku run "php app/console -v -n doctrine:phpcr:fixtures:load"
注意:要继续安装 Sylius,我还必须创建 Sylius 表:
php app/console doctrine:schema:update --force