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