ampproject / amp-by-example

DEPRECATED: AMP by Example has been merged into amp.dev
http://amp.dev
Apache License 2.0
752 stars 506 forks source link

`gulp backend:watch` terminates instead of watching for changes #607

Open dandv opened 7 years ago

dandv commented 7 years ago

This has been a problem for a while, but I hadn't filed an issue. I expect per the README instructions that backend:watch will launch the server and monitor the filesystem for changes. What happens is that GOROOT=$HOME/local/google-cloud-sdk/platform/google_appengine/goroot APPENGINE_DEV_APPSERVER=$(which dev_appserver.py) gulp backend:watch terminates with exit code 0, and the server isn't launched.

➜  amp-by-example git:(master) ✗ GOROOT=$HOME/local/google-cloud-sdk/platform/google_appengine/goroot APPENGINE_DEV_APPSERVER=$(which dev_appserver.py) gulp backend:watch
[19:33:01] Using gulpfile ~/prg/amp-by-example/gulpfile.js
[19:33:01] Starting 'backend:watch'...
[19:33:01] Starting 'bower'...
[19:33:01] Using cwd: /usr/local/google/home/dandv/prg/amp-by-example
[19:33:01] Using bower dir: dist/bower_components
[19:33:01] Starting 'copy:images'...
[19:33:01] Starting 'copy:videos'...
[19:33:01] Starting 'copy:json'...
[19:33:01] Starting 'copy:fonts'...
[19:33:01] Starting 'copy:scripts'...
[19:33:01] Starting 'copy:license'...
[19:33:01] Starting 'copy:static'...
[19:33:01] Starting 'compile:favicons'...
[19:33:01] Starting 'compile:sitemap'...
[19:33:01] Starting 'compile:example'...
[19:33:02] Starting 'copy:well-known'...
[19:33:02] Starting 'build:playground'...
$ npm i && cd playground && npm i && gulp build && mkdir -p ../dist && rm -rf ../dist/playground && cp -R dist ../dist/playground
[19:33:02] Finished 'copy:scripts' after 237 ms
[19:33:02] Finished 'copy:license' after 515 ms
[19:33:02] Finished 'copy:fonts' after 533 ms
[19:33:02] Finished 'copy:well-known' after 348 ms
[19:33:03] Finished 'copy:json' after 1.56 s
[19:33:03] Finished 'copy:videos' after 1.65 s
[19:33:03] Finished 'copy:static' after 1.65 s
[19:33:09] Using gulpfile ~/prg/amp-by-example/playground/gulpfile.js
[19:33:09] Starting 'build:sw'...
[19:33:09] Starting 'build:img'...
[19:33:09] Starting 'build:codemirror:js'...
[19:33:09] codemirror css already minified
[19:33:09] Starting 'build:codemirror:css'...
[19:33:09] codemirror js already minified
[19:33:09] Finished 'build:codemirror:js' after 13 ms
[19:33:09] Finished 'build:codemirror:css' after 11 ms
[19:33:09] Starting 'build:vulcanize'...
[19:33:09] Finished 'build:sw' after 35 ms
[19:33:09] Finished 'build:img' after 28 ms
[19:33:10] Finished 'build:vulcanize' after 1.53 s
[19:33:10] Starting 'build'...
[19:33:10] Finished 'build' after 12 μs
[19:33:11] Finished 'build:playground' after 9.08 s
[19:33:11] [TypeError: Buffer.alloc is not a function]
[19:33:12] Generated sitemap.xml
[19:33:12] Generated index.html
[19:33:12] Generated sitemap.json
[19:33:12] Generated introduction/hello_world/source/index.html
[19:33:12] Generated introduction/hello_world/index.html
[19:33:12] Generated introduction/hello_world/embed/index.html
[19:33:12] Generated introduction/how_to_publish_amps/source/index.html
[19:33:12] Generated introduction/how_to_publish_amps/index.html
[19:33:12] Generated introduction/how_to_publish_amps/embed/index.html
[19:33:12] Generated components/amp-access/source/index.html
[19:33:12] Generated components/amp-access/index.html
[19:33:12] Generated components/amp-access/embed/index.html
[19:33:12] Generated components/amp-accordion/source/index.html
[19:33:12] Generated components/amp-accordion/index.html
[19:33:12] Generated components/amp-accordion/embed/index.html
[19:33:12] Generated components/amp-ad/source/index.html
[19:33:12] Generated components/amp-ad/index.html
[19:33:12] Generated components/amp-ad/embed/index.html
[19:33:12] Generated components/amp-analytics/source/index.html
[19:33:12] Generated components/amp-analytics/index.html
[19:33:12] Generated components/amp-analytics/embed/index.html
[19:33:12] Generated components/amp-anim/source/index.html
[19:33:12] Generated components/amp-anim/index.html
[19:33:12] Generated components/amp-anim/embed/index.html
[19:33:12] Generated components/amp-app-banner/source/index.html
[19:33:12] Generated components/amp-app-banner/index.html
[19:33:12] Generated components/amp-app-banner/embed/index.html
[19:33:12] Generated components/amp-audio/source/index.html
[19:33:12] Generated components/amp-audio/index.html
[19:33:12] Generated components/amp-audio/embed/index.html
[19:33:12] Generated components/amp-bind/source/index.html
[19:33:12] Generated components/amp-bind/index.html
[19:33:12] Generated components/amp-bind/embed/index.html
[19:33:12] Generated components/amp-bind/preview/index.html
[19:33:12] Generated components/amp-bind/preview/embed/index.html
[19:33:12] Generated components/amp-brid-player/source/index.html
[19:33:12] Generated components/amp-brid-player/index.html
[19:33:12] Generated components/amp-brid-player/embed/index.html
[19:33:12] Generated components/amp-brightcove/source/index.html
[19:33:12] Generated components/amp-brightcove/index.html
[19:33:12] Generated components/amp-brightcove/embed/index.html
[19:33:12] Generated components/amp-carousel/source/index.html
[19:33:12] Generated components/amp-carousel/index.html
[19:33:12] Generated components/amp-carousel/embed/index.html
[19:33:12] Generated components/amp-dailymotion/source/index.html
[19:33:12] Generated components/amp-dailymotion/index.html
[19:33:12] Generated components/amp-dailymotion/embed/index.html
[19:33:12] Generated components/amp-experiment/source/index.html
[19:33:12] Generated components/amp-experiment/index.html
[19:33:12] Generated components/amp-experiment/embed/index.html
[19:33:12] Generated components/amp-facebook/source/index.html
[19:33:12] Generated components/amp-facebook/index.html
[19:33:12] Generated components/amp-facebook/embed/index.html
[19:33:12] Generated components/amp-fit-text/source/index.html
[19:33:12] Generated components/amp-fit-text/index.html
[19:33:12] Generated components/amp-fit-text/embed/index.html
[19:33:12] Generated components/amp-font/source/index.html
[19:33:12] Generated components/amp-font/index.html
[19:33:12] Generated components/amp-font/embed/index.html
[19:33:12] Generated components/amp-form/source/index.html
[19:33:12] Generated components/amp-form/index.html
[19:33:12] Generated components/amp-form/embed/index.html
[19:33:12] Generated components/amp-form/preview/index.html
[19:33:12] Generated components/amp-form/preview/embed/index.html
[19:33:12] Generated components/amp-fx-flying-carpet/source/index.html
[19:33:12] Generated components/amp-fx-flying-carpet/index.html
[19:33:12] Generated components/amp-fx-flying-carpet/embed/index.html
[19:33:12] Generated components/amp-gfycat/source/index.html
[19:33:12] Generated components/amp-gfycat/index.html
[19:33:12] Generated components/amp-gfycat/embed/index.html
[19:33:12] Generated components/amp-google-vrview-image/source/index.html
[19:33:12] Generated components/amp-google-vrview-image/index.html
[19:33:12] Generated components/amp-google-vrview-image/embed/index.html
[19:33:12] Generated components/amp-google-vrview-image/preview/index.html
[19:33:12] Generated components/amp-google-vrview-image/preview/embed/index.html
[19:33:12] Generated components/amp-hulu/source/index.html
[19:33:12] Generated components/amp-hulu/index.html
[19:33:12] Generated components/amp-hulu/embed/index.html
[19:33:12] Generated components/amp-iframe/source/index.html
[19:33:12] Generated components/amp-iframe/index.html
[19:33:12] Generated components/amp-iframe/embed/index.html
[19:33:12] Generated components/amp-image-lightbox/source/index.html
[19:33:12] Generated components/amp-image-lightbox/index.html
[19:33:12] Generated components/amp-image-lightbox/embed/index.html
[19:33:12] Generated components/amp-img/source/index.html
[19:33:12] Generated components/amp-img/index.html
[19:33:12] Generated components/amp-img/embed/index.html
[19:33:12] Generated components/amp-instagram/source/index.html
[19:33:12] Generated components/amp-instagram/index.html
[19:33:12] Generated components/amp-instagram/embed/index.html
[19:33:12] Generated components/amp-install-serviceworker/source/index.html
[19:33:12] Generated components/amp-install-serviceworker/index.html
[19:33:12] Generated components/amp-install-serviceworker/embed/index.html
[19:33:12] Generated components/amp-jwplayer/source/index.html
[19:33:12] Generated components/amp-jwplayer/index.html
[19:33:12] Generated components/amp-jwplayer/embed/index.html
[19:33:12] Generated components/amp-kaltura-player/source/index.html
[19:33:12] Generated components/amp-kaltura-player/index.html
[19:33:12] Generated components/amp-kaltura-player/embed/index.html
[19:33:12] Generated components/amp-lightbox/source/index.html
[19:33:12] Generated components/amp-lightbox/index.html
[19:33:12] Generated components/amp-lightbox/embed/index.html
[19:33:12] Generated components/amp-list/source/index.html
[19:33:12] Generated components/amp-list/index.html
[19:33:12] Generated components/amp-list/embed/index.html
[19:33:12] Generated components/amp-live-list/source/index.html
[19:33:12] Generated components/amp-live-list/index.html
[19:33:12] Generated components/amp-live-list/embed/index.html
[19:33:12] Generated components/amp-o2-player/source/index.html
[19:33:12] Generated components/amp-o2-player/index.html
[19:33:12] Generated components/amp-o2-player/embed/index.html
[19:33:12] Generated components/amp-pinterest/source/index.html
[19:33:12] Generated components/amp-pinterest/index.html
[19:33:12] Generated components/amp-pinterest/embed/index.html
[19:33:12] Generated components/amp-reach-player/source/index.html
[19:33:12] Generated components/amp-reach-player/index.html
[19:33:12] Generated components/amp-reach-player/embed/index.html
[19:33:12] Generated components/amp-selector/source/index.html
[19:33:12] Generated components/amp-selector/index.html
[19:33:12] Generated components/amp-selector/embed/index.html
[19:33:12] Generated components/amp-sidebar/source/index.html
[19:33:12] Generated components/amp-sidebar/index.html
[19:33:12] Generated components/amp-sidebar/embed/index.html
[19:33:12] Generated components/amp-social-share/source/index.html
[19:33:12] Generated components/amp-social-share/index.html
[19:33:12] Generated components/amp-social-share/embed/index.html
[19:33:12] Generated components/amp-soundcloud/source/index.html
[19:33:12] Generated components/amp-soundcloud/index.html
[19:33:12] Generated components/amp-soundcloud/embed/index.html
[19:33:12] Generated components/amp-springboard-player/source/index.html
[19:33:12] Generated components/amp-springboard-player/index.html
[19:33:12] Generated components/amp-springboard-player/embed/index.html
[19:33:12] Generated components/amp-sticky-ad/source/index.html
[19:33:12] Generated components/amp-sticky-ad/index.html
[19:33:12] Generated components/amp-sticky-ad/embed/index.html
[19:33:12] Generated components/amp-twitter/source/index.html
[19:33:12] Generated components/amp-twitter/index.html
[19:33:12] Generated components/amp-twitter/embed/index.html
[19:33:12] Generated components/amp-user-notification/source/index.html
[19:33:12] Generated components/amp-user-notification/index.html
[19:33:12] Generated components/amp-user-notification/embed/index.html
[19:33:12] Generated components/amp-video/source/index.html
[19:33:12] Generated components/amp-video/index.html
[19:33:12] Generated components/amp-video/embed/index.html
[19:33:12] Generated components/amp-vimeo/source/index.html
[19:33:12] Generated components/amp-vimeo/index.html
[19:33:12] Generated components/amp-vimeo/embed/index.html
[19:33:12] Generated components/amp-vine/source/index.html
[19:33:12] Generated components/amp-vine/index.html
[19:33:12] Generated components/amp-vine/embed/index.html
[19:33:12] Generated components/amp-youtube/source/index.html
[19:33:12] Generated components/amp-youtube/index.html
[19:33:12] Generated components/amp-youtube/embed/index.html
[19:33:12] Generated advanced/amp-user-notification_with_server_endpoint/source/index.html
[19:33:12] Generated advanced/amp-user-notification_with_server_endpoint/index.html
[19:33:12] Generated advanced/amp-user-notification_with_server_endpoint/embed/index.html
[19:33:12] Generated advanced/how_to_create_interactive_amp_pages/source/index.html
[19:33:12] Generated advanced/how_to_create_interactive_amp_pages/index.html
[19:33:12] Generated advanced/how_to_create_interactive_amp_pages/embed/index.html
[19:33:12] Generated advanced/how_to_create_interactive_amp_pages/preview/index.html
[19:33:12] Generated advanced/how_to_create_interactive_amp_pages/preview/embed/index.html
[19:33:12] Generated advanced/image_galleries_with_amp-carousel/source/index.html
[19:33:12] Generated advanced/image_galleries_with_amp-carousel/index.html
[19:33:12] Generated advanced/image_galleries_with_amp-carousel/embed/index.html
[19:33:12] Generated advanced/integrating_videos_in_amp_an_overview/source/index.html
[19:33:12] Generated advanced/integrating_videos_in_amp_an_overview/index.html
[19:33:12] Generated advanced/integrating_videos_in_amp_an_overview/embed/index.html
[19:33:12] Generated advanced/integrating_videos_in_amp_an_overview/preview/index.html
[19:33:12] Generated advanced/integrating_videos_in_amp_an_overview/preview/embed/index.html
[19:33:12] Generated advanced/long_list_of_amp-instagram_embeds/source/index.html
[19:33:12] Generated advanced/long_list_of_amp-instagram_embeds/index.html
[19:33:12] Generated advanced/long_list_of_amp-instagram_embeds/embed/index.html
[19:33:12] Generated advanced/using_the_amp_url_api/source/index.html
[19:33:12] Generated advanced/using_the_amp_url_api/index.html
[19:33:12] Generated advanced/using_the_amp_url_api/embed/index.html
[19:33:12] Generated advanced/using_the_google_amp_cache/source/index.html
[19:33:12] Generated advanced/using_the_google_amp_cache/index.html
[19:33:12] Generated advanced/using_the_google_amp_cache/embed/index.html
[19:33:12] Generated advanced/video_carousels_with_amp-carousel/source/index.html
[19:33:12] Generated advanced/video_carousels_with_amp-carousel/index.html
[19:33:12] Generated advanced/video_carousels_with_amp-carousel/embed/index.html
[19:33:12] Generated samples_templates/comment_section/source/index.html
[19:33:12] Generated samples_templates/comment_section/index.html
[19:33:12] Generated samples_templates/comment_section/embed/index.html
[19:33:12] Generated samples_templates/comment_section/preview/index.html
[19:33:12] Generated samples_templates/comment_section/preview/embed/index.html
[19:33:12] Generated samples_templates/hotel/source/index.html
[19:33:12] Generated samples_templates/hotel/index.html
[19:33:12] Generated samples_templates/hotel/embed/index.html
[19:33:12] Generated samples_templates/hotel/preview/index.html
[19:33:12] Generated samples_templates/hotel/preview/embed/index.html
[19:33:12] Generated samples_templates/housing/source/index.html
[19:33:12] Generated samples_templates/housing/index.html
[19:33:12] Generated samples_templates/housing/embed/index.html
[19:33:12] Generated samples_templates/housing/preview/index.html
[19:33:12] Generated samples_templates/housing/preview/embed/index.html
[19:33:12] Generated samples_templates/live_blog/source/index.html
[19:33:12] Generated samples_templates/live_blog/index.html
[19:33:12] Generated samples_templates/live_blog/embed/index.html
[19:33:12] Generated samples_templates/live_blog/preview/index.html
[19:33:12] Generated samples_templates/live_blog/preview/embed/index.html
[19:33:12] Generated samples_templates/news_article/source/index.html
[19:33:12] Generated samples_templates/news_article/index.html
[19:33:12] Generated samples_templates/news_article/embed/index.html
[19:33:12] Generated samples_templates/news_article/preview/index.html
[19:33:12] Generated samples_templates/news_article/preview/embed/index.html
[19:33:12] Generated samples_templates/poll/source/index.html
[19:33:12] Generated samples_templates/poll/index.html
[19:33:12] Generated samples_templates/poll/embed/index.html
[19:33:12] Generated samples_templates/poll/preview/index.html
[19:33:12] Generated samples_templates/poll/preview/embed/index.html
[19:33:12] Generated samples_templates/product_listing/source/index.html
[19:33:12] Generated samples_templates/product_listing/index.html
[19:33:12] Generated samples_templates/product_listing/embed/index.html
[19:33:12] Generated samples_templates/product_listing/preview/index.html
[19:33:12] Generated samples_templates/product_listing/preview/embed/index.html
[19:33:12] Generated samples_templates/product/source/index.html
[19:33:12] Generated samples_templates/product/index.html
[19:33:12] Generated samples_templates/product/embed/index.html
[19:33:12] Generated samples_templates/product/preview/index.html
[19:33:12] Generated samples_templates/product/preview/embed/index.html
[19:33:12] Generated samples_templates/recipe/source/index.html
[19:33:12] Generated samples_templates/recipe/index.html
[19:33:12] Generated samples_templates/recipe/embed/index.html
[19:33:12] Generated samples_templates/recipe/preview/index.html
[19:33:12] Generated samples_templates/recipe/preview/embed/index.html
[19:33:12] Generated amp_for_ads_a4a/a4a_banner_ad/source/index.html
[19:33:12] Generated amp_for_ads_a4a/a4a_banner_ad/index.html
[19:33:12] Generated amp_for_ads_a4a/a4a_banner_ad/embed/index.html
[19:33:12] Generated api/dist/amp_for_ads_a4a/a4a_banner_ad/index.html
[19:33:12] Generated amp_for_ads_a4a/a4a_banner_ad/preview/index.html
[19:33:12] Generated amp_for_ads_a4a/a4a_banner_ad/preview/embed/index.html
[19:33:12] Generated amp_for_ads_a4a/a4a_carousel/source/index.html
[19:33:12] Generated amp_for_ads_a4a/a4a_carousel/index.html
[19:33:12] Generated amp_for_ads_a4a/a4a_carousel/embed/index.html
[19:33:12] Generated api/dist/amp_for_ads_a4a/a4a_carousel/index.html
[19:33:12] Generated amp_for_ads_a4a/a4a_carousel/preview/index.html
[19:33:12] Generated amp_for_ads_a4a/a4a_carousel/preview/embed/index.html
[19:33:12] Generated amp-form-input-text-error/source/index.html
[19:33:12] Generated amp-form-input-text-error/index.html
[19:33:12] Generated amp-form-input-text-error/embed/index.html
[19:33:12] Generated amp-form-input-text-success/source/index.html
[19:33:12] Generated amp-form-input-text-success/index.html
[19:33:12] Generated amp-form-input-text-success/embed/index.html
[19:33:12] Generated amp-form-success/source/index.html
[19:33:12] Generated amp-form-success/index.html
[19:33:12] Generated amp-form-success/embed/index.html
[19:33:12] Generated shopping_cart/source/index.html
[19:33:12] Generated shopping_cart/index.html
[19:33:12] Generated shopping_cart/embed/index.html
[19:33:12] Generated test/source/index.html
[19:33:12] Generated test/index.html
[19:33:12] Generated test/embed/index.html
[19:33:12] Generated youre_offline/source/index.html
[19:33:12] Generated youre_offline/index.html
[19:33:12] Generated youre_offline/embed/index.html
[19:33:12] Finished 'compile:sitemap' after 11 s
[19:33:12] Finished 'bower' after 11 s
[19:33:13] Finished 'copy:images' after 11 s
[19:33:13] Finished 'compile:example' after 11 s
➜  amp-by-example git:(master) ✗ echo $?
0
➜  amp-by-example git:(master) git status      
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

Node v5.5.0, gulp 3.9.1, on my Goobuntu desktop.

gulp backend:serve does launch the server at http://localhost:8080/ and monitors changes.

sebastianbenz commented 7 years ago

Does goapp serve work for you? The gulp task does nothing else than launching this command via commandline.