Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.93k stars 441 forks source link

Error deploying Angular2 app on Azure using bitbucket #792

Closed VishalGulati closed 8 years ago

VishalGulati commented 8 years ago

I am facing a issue deploying angular2 app on azure. I get an error on following line

"engines":{"node":"6.2.1"},
I have given this version as WEBSITE_NODE_DEFAULT_VERSION has the value 6.2.1. Anyone having idea about this then please share. package.json looks as follows:

{ "name": "angular-quickstart", "version": "1.0.0", "engines":{"node":"6.2.1"}, "description": "QuickStart package.json from the documentation, supplemented with testing support", "scripts": { "start": "tsc && concurrently \"tsc -w\" \"lite-server\" ", "docker-build": "docker build -t ng2-quickstart .", "docker": "npm run docker-build && docker run -it --rm -p 3000:3000 -p 3001:3001 ng2-quickstart", "pree2e": "npm run webdriver:update", "e2e": "tsc && concurrently \"http-server -s\" \"protractor protractor.config.js\" --kill-others --success first", "lint": "tslint ./app/*/.ts -t verbose", "lite": "node_modules.bin\lite-server", "postinstall": "typings install", "test": "tsc && concurrently \"tsc -w\" \"karma start karma.conf.js\"", "test-once": "tsc && karma start karma.conf.js --single-run", "tsc": "node_modules.bin\tsc", "concurrently": "node_modules.bin\concurrently", "tsc:w": "node_modules.bin\tsc -w", "typings": "node_modules.bin\typings", "webdriver:update": "webdriver-manager update" }, "keywords": [], "author": "", "licenses": [ { "type": "MIT", "url": "https://github.com/angular/angular.io/blob/master/LICENSE" } ], "dependencies": { "@angular/common": "~2.1.0", "@angular/compiler": "~2.1.0", "@angular/core": "~2.1.0", "@angular/forms": "~2.1.0", "@angular/http": "~2.1.0", "@angular/platform-browser": "~2.1.0", "@angular/platform-browser-dynamic": "~2.1.0", "@angular/router": "~3.1.0", "@angular/upgrade": "~2.1.0",

"angular-in-memory-web-api": "~0.1.5",
"bootstrap": "^3.3.7",
"systemjs": "0.19.39",
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.8",
"rxjs": "5.0.0-beta.12",
"zone.js": "^0.6.25",
"concurrently": "^3.0.0",
"lite-server": "^2.2.2",
"typescript": "^2.0.3",
"typings": "^1.4.0"

}, "devDependencies": { "concurrently": "^3.0.0", "lite-server": "^2.2.2", "typescript": "^2.0.3", "typings": "^1.4.0",

"canonical-path": "0.0.2",
"http-server": "^0.9.0",
"tslint": "^3.15.1",
"lodash": "^4.16.2",
"jasmine-core": "~2.5.2",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-htmlfile-reporter": "^0.3.4",
"karma-jasmine": "^1.0.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^3.3.0",
"rimraf": "^2.5.4"

}, "repository": {} }

Please suggest a solution.

davidebbo commented 8 years ago

Can you give more details about how you are deploying your app to Azure? Are you using git/Kudu? Also, what specific error are you getting?

davidebbo commented 8 years ago

One more thing: can you confirm that you are you using Azure Functions? If not, then you're in the wrong repo :)

VishalGulati commented 8 years ago

i am using git for deployment. I am getting an error:

Err on line 6: "engines":{"node":"6.2.1"}

I am not using azure functions.

davidebbo commented 8 years ago

Closing here since this repo is unrelated. You can open issue on https://github.com/projectkudu/kudu. Please make sure to include a sample repo as describe in this page.

VishalGulati commented 8 years ago

opened the issue at kudu. https://github.com/projectkudu/kudu/issues/2191