Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Update source to registry #920

Merged
merged 4 commits into from Aug 5, 2014
Merged

Update source to registry #920

merged 4 commits into from Aug 5, 2014

Conversation

sorrycc
Copy link
Member

@sorrycc sorrycc commented Aug 4, 2014

方案:#888

sorrycc added a commit that referenced this pull request Aug 5, 2014
@sorrycc sorrycc merged commit 5a0dd79 into master Aug 5, 2014
@sorrycc sorrycc deleted the source-registry branch August 5, 2014 10:57
var source = options.source || 'default';
this.server = options.registry || spmrc.get('registry') || 'http://spmjs.io';
this.server = this.server.replace(/\/$/, '');
options.proxy = options.proxy || spmrc.get('proxy');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

话说这个 proxy 是做什么用的?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yuan.js 在发起请求时的代理。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

registry 不是可以指定代理服务器么?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

代理服务器和源服务器是不一样的。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原理是什么?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@afc163
Copy link
Member

afc163 commented Aug 6, 2014

spmrc 没升级

@sorrycc
Copy link
Member Author

sorrycc commented Aug 6, 2014

呃,漏了。。

@afc163
Copy link
Member

afc163 commented Aug 6, 2014

afc163 referenced this pull request Aug 6, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants