phundament / app

Dockerized Yii2 web application base
http://phundament.com
Other
310 stars 129 forks source link

Error with composer #142

Closed tkowalski29 closed 9 years ago

tkowalski29 commented 9 years ago

When I try to install with composer, in ssh of my server. I have some errors:

ssh> php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta 4" Changed current directory to /var/services/homes/admin/.composer ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev)

Writing lock file Generating autoload files

ssh> php composer.phar create-project --stability=beta phundament/app Installing phundament/app (4.0.0-beta9)

Created project in /volume1/web/Migo/advanced/app Loading composer repositories with package information Installing dependencies (including require-dev) from lock file

sh: git: not found

Now trying to download from dist

sh: git: not found

Now trying to download from dist

create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]

Any suggestions?

Quexer69 commented 9 years ago

I'am wondering why its trying to clone via ssh ? Are you on a server or VM ?

all repo URLs in the composer.lock files are as https://github.com/... and not as git@github.com:... !?

what are these commands doing ? stability dev or stable, instead of beta ->

php composer.phar create-project --stability=dev phundament/app or php composer.phar create-project --stability=stable phundament/app

or try to git clone https://github.com/phundament/app.git my-app and then php composer.phar install --prefer-dist

tkowalski29 commented 9 years ago

Why ssh, because I have a NAS synology I this is the only way to use composer.

When I try: php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta4" and: php composer.phar create-project --stability=dev phundament/app

It's work

tkowalski29 commented 9 years ago

Thank you Quexer69, the rest of the installation with no problem.

Quexer69 commented 9 years ago

you are welcome :-)