Ошибки при развертывании basi c React App в Azure как веб-приложение - PullRequest
0 голосов
/ 12 июля 2020

У меня возникают ошибки при попытке развернуть приложение basi c react как Azure экземпляр веб-приложения.

By basi c Я имею в виду, что создал приложение React из команды строку с npx create-react-app my-app-name и добавьте файл веб-конфигурации. Ничего не обновлялось, и оно отлично работает локально.

Я развертываю приложение из кода VS с использованием расширения Azure.

Репо: здесь

Azure Конфигурации веб-приложений:

image

Вывод из журналов кода VS:

1:58:55 PM GerekaWebApp: Creating zip package...
1:59:04 PM GerekaWebApp: Starting deployment...
1:59:12 PM GerekaWebApp: Updating submodules.
1:59:12 PM GerekaWebApp: Preparing deployment for commit id '3569af008e'.
1:59:12 PM GerekaWebApp: Repository path is /tmp/zipdeploy/extracted
1:59:12 PM GerekaWebApp: Running oryx build...
1:59:12 PM GerekaWebApp: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 10.14 -i /tmp/8d826a66dea0a0c -p compress_node_modules=tar-gz --log-file /tmp/build-debug.log 
1:59:15 PM GerekaWebApp: Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
1:59:15 PM GerekaWebApp: You can report issues at https://github.com/Microsoft/Oryx/issues
1:59:15 PM GerekaWebApp: Oryx Version      : 0.2.20200522.2, Commit: bf724c0e83f3da74487f55cd304c63331dab7067, ReleaseTagName: 20200522.2
1:59:15 PM GerekaWebApp: Build Operation ID: |l1qu1seJGBk=.4ca6285_
1:59:15 PM GerekaWebApp: Repository Commit : 3569af008e3e4d29b00ddd3c6cefb6f4
1:59:17 PM GerekaWebApp: Warning: An outdated version of node was detected (10.14.2). Consider updating.\nVersions supported by Oryx: https://github.com/microsoft/Oryx
1:59:17 PM GerekaWebApp: Using intermediate directory '/tmp/8d826a66dea0a0c'.
1:59:17 PM GerekaWebApp: Copying files to the intermediate directory...
1:59:17 PM GerekaWebApp: Done in 0 sec(s).
1:59:18 PM GerekaWebApp: Source directory     : /tmp/8d826a66dea0a0c
1:59:18 PM GerekaWebApp: Destination directory: /home/site/wwwroot
1:59:18 PM GerekaWebApp: Using Node version:
1:59:18 PM GerekaWebApp: v10.14.2
1:59:18 PM GerekaWebApp: Using Yarn version:
1:59:20 PM GerekaWebApp: 1.17.3
1:59:20 PM GerekaWebApp: Configuring Yarn cache folder...
1:59:21 PM GerekaWebApp: yarn config v1.17.3
1:59:21 PM GerekaWebApp: success Set "cache-folder" to "/usr/local/share/yarn-cache".
1:59:21 PM GerekaWebApp: Done in 0.17s.
1:59:21 PM GerekaWebApp: Running 'yarn install --prefer-offline'...
1:59:23 PM GerekaWebApp: yarn install v1.17.3
1:59:23 PM GerekaWebApp: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
1:59:23 PM GerekaWebApp: [1/4] Resolving packages...
1:59:27 PM GerekaWebApp: [2/4] Fetching packages...
2:00:54 PM GerekaWebApp: info fsevents@2.1.2: The platform "linux" is incompatible with this module.
2:00:54 PM GerekaWebApp: info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
2:00:54 PM GerekaWebApp: info fsevents@1.2.12: The platform "linux" is incompatible with this module.
2:00:54 PM GerekaWebApp: info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
2:00:54 PM GerekaWebApp: [3/4] Linking dependencies...
2:00:54 PM GerekaWebApp: warning " > @testing-library/user-event@7.2.1" has unmet peer dependency "@testing-library/dom@>=5".
2:00:54 PM GerekaWebApp: warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
2:03:01 PM GerekaWebApp: [4/4] Building fresh packages...
2:03:07 PM GerekaWebApp: Done in 224.55s.
2:03:07 PM GerekaWebApp: Running 'yarn run build'...
2:03:09 PM GerekaWebApp: yarn run v1.17.3
2:03:09 PM GerekaWebApp: $ react-scripts build
2:03:17 PM GerekaWebApp: Creating an optimized production build...
2:03:57 PM GerekaWebApp: Compiled successfully.
2:03:57 PM GerekaWebApp: File sizes after gzip:
2:03:57 PM GerekaWebApp:   39.4 KB (+1 B)  build/static/js/2.ed83ca6b.chunk.js
2:03:57 PM GerekaWebApp:   781 B (+2 B)    build/static/js/runtime-main.fe217433.js
2:03:57 PM GerekaWebApp:   654 B (-1 B)    build/static/js/main.dd8f2cfe.chunk.js
2:03:57 PM GerekaWebApp:   547 B           build/static/css/main.5f361e03.chunk.css
2:03:57 PM GerekaWebApp: The project was built assuming it is hosted at /.
2:03:57 PM GerekaWebApp: You can control this with the homepage field in your package.json.
2:03:57 PM GerekaWebApp: The build folder is ready to be deployed.
2:03:57 PM GerekaWebApp: You may serve it with a static server:
2:03:57 PM GerekaWebApp:   yarn global add serve
2:03:57 PM GerekaWebApp:   serve -s build
2:03:57 PM GerekaWebApp: Find out more about deployment here:
2:03:57 PM GerekaWebApp:   bit.ly/CRA-deploy
2:03:58 PM GerekaWebApp: Done in 48.80s.
2:03:58 PM GerekaWebApp: Zipping existing node_modules folder...
2:04:36 PM GerekaWebApp: Done in 38 sec(s).
2:04:36 PM GerekaWebApp: Copying files to destination directory '/home/site/wwwroot'...
2:04:39 PM GerekaWebApp: Done in 3 sec(s).
2:04:39 PM GerekaWebApp: Removing existing manifest file
2:04:39 PM GerekaWebApp: Creating a manifest file...
2:04:39 PM GerekaWebApp: Manifest file created.
2:04:39 PM GerekaWebApp: Done in 322 sec(s).
2:04:40 PM GerekaWebApp: Running post deployment command(s)...
2:04:41 PM GerekaWebApp: Triggering recycle (preview mode disabled).
2:04:41 PM GerekaWebApp: Deployment successful.
2:04:46 PM: Deployment to "GerekaWebApp" completed.
2:06:07 PM: "GerekaWebApp" reported a critical error: Container gerekawebapp_0_5d18e943 for site gerekawebapp has exited, failing site start
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...