question

TimBara-4054 avatar image
0 Votes"
TimBara-4054 asked ryanchill answered

Deploying Angularjs github Code to Azure Web App Service

I am trying to deploy an angularjs application's code from github to azure web app service. I am using gulp for automation which works correctly when I gulp serve on my local machine. However, when I push the code to github and link my azure web app to the git repository it doesn't work.
On the log I get the following error

error: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/ClickTest_testClicksASurroundingStrongTag.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/click_tests/partially_overlapping_elements.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/click_tests/wrapped_overlapping_elements.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/coordinates_tests/element_in_nested_frame.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/coordinates_tests/page_with_element_out_of_view.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/coordinates_tests/page_with_empty_element.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/coordinates_tests/page_with_fixed_element.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/coordinates_tests/page_with_hidden_element.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/coordinates_tests/page_with_invisible_element.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/coordinates_tests/page_with_transparent_element.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-icons_222222_256x240.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-icons_228ef1_256x240.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-icons_ef8c08_256x240.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-icons_ffd27a_256x240.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/images/ui-icons_ffffff_256x240.png: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/css/ui-lightness/jquery-ui-1.8.10.custom.css: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/frame_switching_tests/bug4876_iframe.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/frame_switching_tests/deletingFrame_iframe.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/frame_switching_tests/deletingFrame_iframe2.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/js/skins/lightgray/content.inline.min.css: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/js/skins/lightgray/fonts/tinymce-small.dev.svg: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/js/skins/lightgray/fonts/tinymce-small.eot: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/js/skins/lightgray/fonts/tinymce-small.svg: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/js/skins/lightgray/fonts/tinymce-small.ttf: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/js/skins/lightgray/fonts/tinymce-small.woff: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/locators_tests/boolean_attribute_selected.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/locators_tests/boolean_attribute_selected_html4.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/frame_with_height_above_200.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/frame_with_height_above_2000.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/frame_with_nested_scrolling_frame.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/frame_with_nested_scrolling_frame_out_of_view.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/frame_with_small_height.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/page_with_double_overflow_auto.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/page_with_frame_out_of_view.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/page_with_nested_scrolling_frames.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/page_with_nested_scrolling_frames_out_of_view.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/page_with_non_scrolling_frame.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/page_with_scrolling_frame.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/page_with_scrolling_frame_out_of_view.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/page_with_tall_frame.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/scrolling_tests/page_with_y_overflow_auto.html: Filename too long\nerror: unable to create file master/node_modules/gulp-protractor/node_modules/webdriver-js-extender/node_modules/selenium-webdriver/lib/test/data/window_switching_tests/page_with_frame.html: Filename too long\nAlready on 'Master'\n\r\nC:\Program Files\Git\cmd\git.exe checkout Master --force

Please help:

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered

@TimBara-4054,

The errors point to filename to long. If you're using yaml, you should be able to exclude the selenium files from deployment. See this StackOverflow answer for an idea on how to filter.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.