Skip to content

Commit

Permalink
添加 gulp server:home
Browse files Browse the repository at this point in the history
  • Loading branch information
amio committed May 29, 2014
1 parent e22a813 commit 836b412
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 157 deletions.
156 changes: 0 additions & 156 deletions app/intro.html

This file was deleted.

2 changes: 1 addition & 1 deletion app/scripts/services/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ angular.module('toHELL').service('ENV', function () {

var env = 'unknown';

if (/debug/.test(window.location.href)) {
if (/debug|localhost/.test(window.location.href)) {
env = 'debug';
} else if (/ctripqa/.test(window.location.href)) {
env = 'ctqa';
Expand Down
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ gulp.task('server:dev', ['html2js'], function () {
open('http://localhost:9999');
});

gulp.task('server:home', function () {
var servers = createServers('.', LOCAL_PORT, LIVERELOAD_PORT);
gulp.watch(['./app/**/*', './home/**/*', '!./app/node_modules/**/*'], servers.onchange);
open('http://localhost:9999/home');
});

gulp.task('server:dist', ['build'], function () {
var servers = createServers(BUILD_ROOT, LOCAL_PORT, LIVERELOAD_PORT);
gulp.watch([BUILD_ROOT + '/**.*'], servers.onchange);
Expand Down

0 comments on commit 836b412

Please sign in to comment.