Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не работает локальный запуск Доки без интернета #1266

Open
furtivite opened this issue May 15, 2024 Discussed in #1265 · 1 comment
Assignees
Labels
движок Задачи по движку ошибка Что-то критичное и мешает

Comments

@furtivite
Copy link
Member

Discussed in #1265

Originally posted by N1k0lay May 15, 2024
Как запустить платформу с контентом локально и без интернета?

Отключаю интернет, запускаю npm start, при запуске после создания симлинков появляется ошибка, так как идет запрос к CHANGELOG на гитхаб.

[11ty] Problem writing Eleventy templates: (more in DEBUG output)
[11ty] request to https://raw.githubusercontent.com/doka-guide/content/main/CHANGELOG.md failed, reason: getaddrinfo ENOTFOUND raw.githubusercontent.com (via FetchError)
[11ty] 
[11ty] Original error stack trace: FetchError: request to https://raw.githubusercontent.com/doka-guide/content/main/CHANGELOG.md failed, reason: getaddrinfo ENOTFOUND raw.githubusercontent.com
[11ty]     at ClientRequest.<anonymous> (/Users/frtvt/Developer/doka/platform/node_modules/node-fetch/lib/index.js:1501:11)
[11ty]     at ClientRequest.emit (node:events:514:28)
[11ty]     at TLSSocket.socketErrorListener (node:_http_client:495:9)
[11ty]     at TLSSocket.emit (node:events:514:28)
[11ty]     at emitErrorNT (node:internal/streams/destroy:151:8)
[11ty]     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
[11ty]     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[11ty] Copied 3 files / Wrote 0 files in 2.62 seconds (v2.0.1)
@furtivite furtivite added the ошибка Что-то критичное и мешает label May 15, 2024
@furtivite
Copy link
Member Author

Если

  1. закомментировать в .eleventy.js строки (с 98 по 154), которые отвечают за создание коллекции posts
  2. удалить файлы views/feed.njk и feed.11tydata.js

сборка стартует.

@TatianaFokina TatianaFokina added the движок Задачи по движку label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
движок Задачи по движку ошибка Что-то критичное и мешает
Projects
None yet
Development

No branches or pull requests

3 participants