marmelab/microrest.php

make install-demo : error "ln: failed to create symbolic link ‘web/css/microrest’"

Opened this issue · 3 comments

Hi,

I'm trying to deploy microrest (and try ng-admin after that) on an empty VM, running Debian Jessie RC1, on fresh Amazon EC2 install.

Problem is at post-install-cmd inside composer.json :

admin@ip-...:/var/www/html/microrest.php/examples/ng-admin$ cat composer.json 
{
    "name": "marmelab/microrest-example",
    "description": "An example application using `marmelab/microrest`",
    "license": "MIT",
    "type": "project",
    "authors": [
        {
            "name": "Jérôme Macias",
            "email": "jerome@marmelab.com"
        }
    ],
    "require": {
        "php": ">=5.3.3",
        "ext-pdo_sqlite": "*",
        "doctrine/dbal": "~2.5",
        "jdesrosiers/silex-cors-provider": "~0.1",
        "jeromemacias/silex-debug": "~1.0@dev",
        "marmelab/microrest": "~1.0@dev",
        "silex/silex": "~1.0@dev",
        "silex/web-profiler": "~1.0",
        "symfony/config": "~2.6",
        "symfony/debug": "~2.6",
        "symfony/monolog-bridge": "~2.6",
        "symfony/twig-bridge": "~2.6"
    },
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "config": {
        "bin-dir": "bin",
        "process-timeout": 0
    },
    "scripts": {
        "post-install-cmd": [
            "ln -s ../../vendor/marmelab/microrest/web/css web/css/microrest",
            "ln -s ../../vendor/marmelab/microrest/web/js web/js/microrest"
        ],
        "run": [
            "echo 'Started web server on http://localhost:8888'",
            "php -S localhost:8888 -t web/ web/index_dev.php"
        ]
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

Any hint ?

Can you send me the complete error trace please ?

I had the same issue and i removed the "post-install-cmd", not solve the issue but lets you install the demo 👍