Authored by 毕凯

PC JS服务器监听8001端口

@@ -12,14 +12,14 @@ @@ -12,14 +12,14 @@
12 <script src="http://static.buy.test.yoho.cn/dist/yohobuy/{{version}}/index-debug.js"></script> 12 <script src="http://static.buy.test.yoho.cn/dist/yohobuy/{{version}}/index-debug.js"></script>
13 {{/if}} 13 {{/if}}
14 {{#if devEnv}} 14 {{#if devEnv}}
15 - <script src="http://localhost:8000/static/js/sea.js?nowrap"></script> 15 + <script src="http://localhost:8001/static/js/sea.js?nowrap"></script>
16 <script> 16 <script>
17 seajs.config({ 17 seajs.config({
18 - base: 'http://localhost:8000/' 18 + base: 'http://localhost:8001/'
19 }); 19 });
20 </script> 20 </script>
21 {{/if}} 21 {{/if}}
22 {{> layout/use}} 22 {{> layout/use}}
23 {{> layout/analysis}} 23 {{> layout/analysis}}
24 </body> 24 </body>
25 -</html>  
  25 +</html>
@@ -56,7 +56,7 @@ gulp.task('compass-watch', function() { @@ -56,7 +56,7 @@ gulp.task('compass-watch', function() {
56 56
57 // start spm server 57 // start spm server
58 gulp.task('spm-doc', function() { 58 gulp.task('spm-doc', function() {
59 - var sd = cp.exec('spm doc'); 59 + var sd = cp.exec('spm doc watch --port 8001'); // pc用8001,h5用8000, 跑两个服务器,不冲突
60 60
61 // sd.stdout.on('data', function(data) { 61 // sd.stdout.on('data', function(data) {
62 // console.log(data); 62 // console.log(data);
@@ -197,4 +197,4 @@ gulp.task('business', ['libs'], function() { @@ -197,4 +197,4 @@ gulp.task('business', ['libs'], function() {
197 gulp.task('script', function() { 197 gulp.task('script', function() {
198 gulp.src('plugin/page/**/*') 198 gulp.src('plugin/page/**/*')
199 .pipe(gulp.dest(rootDist)); 199 .pipe(gulp.dest(rootDist));
200 -});  
  200 +});