@niknik_ykt
Не понимаю почему все это работает.

Как установить umami на heroku?

Решил отказаться сторонних метрик в пользу umami (скорее в познавательских целях). На обычном хостинге (джино, таймвеб) установить не удалось. Потребовался vds/vps. Так же хотел установить телеграм бота из git. Тоже потребовался vds/vps. Перешел на heroku. Сделал клоны у себя на гитхабе бота и umami, вроде все делаю по написонной инструкции, но так и не получилось.
Build log
/tmp/build_2bd02fd4/lang/ro-RO.json -> /tmp/build_2bd02fd4/build/ro-RO.json
       /tmp/build_2bd02fd4/lang/ru-RU.json -> /tmp/build_2bd02fd4/build/ru-RU.json
       /tmp/build_2bd02fd4/lang/sk-SK.json -> /tmp/build_2bd02fd4/build/sk-SK.json
       /tmp/build_2bd02fd4/lang/sv-SE.json -> /tmp/build_2bd02fd4/build/sv-SE.json
       /tmp/build_2bd02fd4/lang/ta-IN.json -> /tmp/build_2bd02fd4/build/ta-IN.json
       /tmp/build_2bd02fd4/lang/tr-TR.json -> /tmp/build_2bd02fd4/build/tr-TR.json
       /tmp/build_2bd02fd4/lang/uk-UA.json -> /tmp/build_2bd02fd4/build/uk-UA.json
       /tmp/build_2bd02fd4/lang/zh-CN.json -> /tmp/build_2bd02fd4/build/zh-CN.json
       /tmp/build_2bd02fd4/lang/zh-TW.json -> /tmp/build_2bd02fd4/build/zh-TW.json
       $ formatjs compile-folder --ast build public/lang
       $ node scripts/build-geo.js
       Saved geo database: /tmp/build_2bd02fd4/public/geo/GeoLite2-Country.mmdb
       $ npm-run-all copy-db-schema build-db-client
       $ node scripts/copy-db-schema.js
/tmp/build_2bd02fd4/scripts/copy-db-schema.js:20
  throw new Error('Missing or invalid database');
  ^
Error: Missing or invalid database
    at Object.<anonymous> (/tmp/build_2bd02fd4/scripts/copy-db-schema.js:20:9)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47
error Command failed with exit code 1.
       info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "copy-db-schema" exited with 1.
error Command failed with exit code 1.
       info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build-db" exited with 1.
error Command failed with exit code 1.
       info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
-----> Build failed
       
       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys
       
       If you're stuck, please submit a ticket so we can help:
       https://help.heroku.com/
       
       Love,
       Heroku
       
 !     Push rejected, failed to compile Node.js app.
 !     Push failed


Heroku выбрал случайным образом. Может есть решения попроще?

P.S. юзаю win10
  • Вопрос задан
  • 65 просмотров
Пригласить эксперта
Ответы на вопрос 1
Noizefan
@Noizefan
Бота установить захотел, а базу для него установить не захотел.
Путь легче - учиться админить линух и отказываться от винды, ставить всё самому - не так уж это и сложно.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы