1.Token is need the first time to use github
Could not fetch https://api.github.com/repos/jquery/jquery, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+localhost+2015-10-08+1123
to retrieve a token. It will be stored in “/root/.composer/auth.json” for future use by Composer.
Token (hidden):
Solution:
- copy the url in the screen to browser,general a git token, such as above:https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+localhost+2015-10-08+1123
- pasty the token to command line, go next.
2.bower-asset/jquery may be need the first time to use composer when composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.Problem 1
- yiisoft/yii2 2.0.x-dev requires bower-asset/jquery 2.1.@stable | 1.11.@stable -> no matching package found.
….
Solution:composer global require "fxp/composer-asset-plugin:*"
3.How to add user’s ssh-key to github/gitlab’s ssh-keys list
su - www # suppose www is the user of php process |
4.How to add user’s ssh-key to server
on host
ps aux|grep php # suppose www is the user of php process |
5.Import data failed
Dependent on pdo extension. Solution:add pdo extension
ubuntu |
6.Nginx configuration example
server { |