Настройка Aegir-up (Aegir+Vagrant+Drush)

Я пытаюсь создать правильную среду разработки Drupal, используя Aegir-up (виртуальный Aegir на основе Vagrant). машина). Я проиллюстрирую, как я выполняю следующие шаги «Быстрый старт» и терплю неудачу:

Установите зависимости, включая drush-vagrant и drush-hosts:

    C:\Users\Domas>drush dl drush-vagrant drush-hosts
    Install location C:\Users\Domas/.drush/drush-vagrant already exists. Do you want to overwr
    ite it? (y/n): y
    Project drush-vagrant (7.x-2.0-beta6) downloaded to                              [success]
    C:\Users\Domas/.drush/drush-vagrant.
    Project drush-vagrant contains 0 modules: .
    Install location C:\Users\Domas/.drush/drush-hosts already exists. Do you want to overwrit
    e it? (y/n): y
    Project drush-hosts (7.x-1.1) downloaded to C:\Users\Domas/.drush/drush-hosts.   [success]

    Project drush-hosts contains 0 modules: .

Я не знаю, имеет ли значение «содержит 0 модулей». Я пытаюсь установить aegir-up:

    C:\Users\Domas>drush dl aegir-up
    Install location C:\Users\Domas/.drush/aegir-up already exists. Do you want to overwrite i
    t? (y/n): y
    Project aegir-up (7.x-2.0-alpha1) downloaded to C:\Users\Domas/.drush/aegir-up.  [success]

    Project aegir-up contains 0 modules: .

Наконец, я запускаю vagrant-build, чтобы запустить бродячий проект (я полагаю), вот где он терпит неудачу:

    C:\Users\Domas>drush vagrant-build --blueprint=aegir
    The name of your project may be used in URLs, and so should only contain lower-case letter
    s and numbers.
    It may also contain hyphens (-) and dots (.), so long as they do not come at the beginning
     or end of the name.
    What would you like to call your project?: test
    Would you like to generate entries in /etc/hosts for the VMs in your project? (y/n): y
    You are about to:
      * Create a new project called "test" at "C:\Users\Domas/vagrant/projects/test".
      * Add entries for the FQDNs of the VMs to /etc/hosts. (You will be prompted for your sud
    o password.)
      * Generate Drush aliases for the project and VMs.
      * Launch the project VMs immediately.
      * Build the project using the "aegir" blueprint from the "aegirup" extension.
    Do you want to proceed with initializing the project? (y/n): y
    Copied the "aegir" blueprint directory to C:\Users\Domas/vagrant/projects/test.       [ok]

    'egrep' is not recognized as an internal or external command,
    operable program or batch file.
    symlink(): Cannot create symlink, error code(1314) vagrant.blueprints.inc:90     [warning]

    Errors occurred when running "symlink()" in                                        [error]

    "vagrant_default_build_project_setup".
    Drush command terminated abnormally due to an unrecoverable error.                 [error]

Сначала я подумал, что просто не хватает Egrep, скачал UnxUtils, добавил в PATH и проверил, что Egrep запускается из командной строки, что он и сделал. Однако после повторного выполнения шагов настройки aegir-up я все еще получал те же ошибки.

Я не особо знаком ни с одним из этих инструментов. У меня есть сервер VirtualBox, Vagrant, Drush и NFS, Ruby, gem. Работает на Win8. Целый день ищу ответ. Может ли кто-нибудь пролить свет на это?


person Dominykas Mostauskis    schedule 03.11.2012    source источник


Ответы (1)


По-видимому, мне нужно было запускать эти команды через оболочку с повышенными привилегиями (например, щелкните правой кнопкой мыши командную строку -> «Запуск от имени администратора»). Cannot create symlink, error code(1314) было тем, на чем я должен был сосредоточиться. Команды пошли. Возникли и другие проблемы, а именно – путь Windows не экранировался должным образом; впрочем, это не вопрос.

Изменить: на момент публикации этой проблемы Aegir-up не поддерживался в Windows, достаточно просто. Вот почему у меня было множество проблем, пытаясь запустить его на них.

person Dominykas Mostauskis    schedule 03.11.2012