konga 安裝中遇到的問題總結


1,konga 連不上數據庫

解決方式:DB_URI中寫入用戶名和密碼
DB_URI=postgresql://kong:kong1234@*******:5432/kong


2,[解決]npm ERR! code ELIFECYCLE
解決方式:
npm cache clean --force
rm -rf node_modules
rm -rf package-lock.json
npm install
npm start


3,登錄頁面登錄不上
默認登錄名admin,密碼是三個admin

4,error: relation "public.konga_users" does not exist
解決方式:
.env中的模式應該改為NODE_ENV=production 改成development
https://github.com/pantsel/konga/issues/40
This issue is created as a reference.
Sails js - the framework Konga is built upon - won't let the app alter database tables when running in production mode.
This is a failsafe to protect against inadvertently damaging your production data during deployment.
More info here .
To get around that for now, you will need to start Konga in develoment mode the first time only. That way the app will be able to create the needed db tables.
You can do that by setting the NODE_ENV environment variable to development


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM