如何在Windows IIS上部署我的代码。我用什么库在生产环境中运行我的项目?我为生产运行的命令。我是AngularJS的新手,我正在使用gulp项目。有人帮我吗?这是我的gulp文件,我想在Windows IIS或其他Linux服务器上部署此代码。
我的代码毁了PORT 3000命令:gulp serve
'use strict';
// -----------------------------------------------------------------------------
// Dependencies
// -----------------------------------------------------------------------------
var gulp = require('gulp');
var watch = require('gulp-watch');
var sass = require('gulp-sass');
var browserSync = require('browser-sync');
var runSequence = require('run-sequence');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify')
var reload = browserSync.reload;
// -----------------------------------------------------------------------------
// SASS
// -----------------------------------------------------------------------------
gulp.task('sass', function () {
return gulp.src(['./scss/ltr-app.scss', './scss/rtl-app.scss'])
.pipe(sass())
.pipe(gulp.dest('./css'));
});
// -----------------------------------------------------------------------------
// JavaScript
// -----------------------------------------------------------------------------
gulp.task('js', function() {
return gulp.src([
'./bower_components/angular/angular.js',
'./bower_components/angular-translate/angular-translate.js',
'./bower_components/angular-translate-handler-log/angular-translate-handler-log.js',
'./bower_components/angular-cookies/angular-cookies.js',
'./bower_components/angular-translate-storage-cookie/angular-translate-storage-cookie.js',
'./bower_components/angular-translate-storage-local/angular-translate-storage-local.js',
'./bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files.js',
'./app/app.js'])
.pipe(concat('app.min.js'))
.pipe(uglify())
.pipe(gulp.dest('./app'));
});
// -----------------------------------------------------------------------------
// Watch Files & Reload
// -----------------------------------------------------------------------------
gulp.task('serve', function() {
browserSync({
server: {
baseDir: "./"
}
});
gulp.watch(['./index.html'], [reload]);
gulp.watch('./scss/**/*.scss', ['sass', reload]);
gulp.watch('./app/app.js', ['js', reload]);
});
// -----------------------------------------------------------------------------
// Build
// -----------------------------------------------------------------------------
gulp.task('build', [], function() {
runSequence('sass', 'js');
});
// -----------------------------------------------------------------------------
// Gulp Default
// -----------------------------------------------------------------------------
gulp.task('default', [], function() {
gulp.start('serve');
});