@Michaelwu said in Can't start NodeBB:
solved! I del node accidentally
@Michaelwu said in Can't start NodeBB:
solved! I del node accidentally
You can take a look at google's kaniko which may exactly fulfill your requirements.
By default, admin management panel can be used to upload favicon/site-logo and etc images which are not hooked in the nodebb original source code.
If that's the situation you have to override the default upload behavior, you may have to change the source code. I'll put a simple example below:
src/controllers/admin/uploads.js
uploadsController.uploadCategoryPicture = function() {
await upload('favicon', req, res, next);
}
I'm gonna answer my own question here. The solution is simple, use other cloud-based upload plugins, for example:
NOTE: both of these plugins are somekind of outdated, you may have to modify the code to make it work.
for aliyun oss upload, you can use my modified version:
./public/uploads/
should be persist, it's used for the uploaded files.
By the way, how do you handle the persist problem in docker?
@PitaJ Thanks.
I'm deploying nodebb with docker, but the files uploaded are store in relative path to nodebb application, which is in the docker environment. So, as all of us know, docker environment would be destroyed and the uploaded files, specifically the uploaded favicons and etc admin settings related with assets uploaded would be in a mess, resulting in unreachable image sources or something like that. So, to put it all together, my question is how to deploy with docker and persist all the upload files? Is there any official documentations or guides available? Very much appreciated for your suggestions and actionalble guide. Thanks in advance.
I've customized nodebb widgets settings throught admin pannel, but after choosing another theme, all settings were lost/reset.
How to avoid this, or is there any means to persist my widgets settings?
By default, it's no possible to use mysql directly. But if you really want it, some efforts could be take to migrate the db from existing dbs to mysql database.
So, in short, it's possible to use mysql only if you can successfuly migrate all schemas and existing database operations in the code from mongodb/redis/postgresql(any of these) into mysql.
It looks like the discussion content in this topics has become outdated, so should I refer to the docs site directly instead?
I want to customize the default home page and post detail page, which involves layout and style customization, so, am I correct to develop a new theme for this?