Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Renaming a directory creates two sidebar entries #15

Open
bennycode opened this issue Aug 9, 2017 · 4 comments
Open

Renaming a directory creates two sidebar entries #15

bennycode opened this issue Aug 9, 2017 · 4 comments
Assignees

Comments

@bennycode
Copy link
Contributor

I renamed a directory in my GitHub repository, which resulted in getting two items in my Wiki.js sidebar (one item with old name, one item with new name):

bug

@NGPixel NGPixel self-assigned this Aug 10, 2017
@NGPixel
Copy link
Member

NGPixel commented Aug 10, 2017

Restart Wiki.js to fix this issue. The file watcher (chokidar) doesn't support renames, so this is not being detected.

It will be implemented differently in 2.0, but for now I would simply avoid doing renames outside Wiki.js. Use the Move function in Wiki.js to rename a file instead.

@bennycode
Copy link
Contributor Author

Okay, thanks for the quick response. Is their a way to trigger a sync between Wiki.js and GitHub or do I have to always wait for 5 minutes?

@NGPixel
Copy link
Member

NGPixel commented Aug 10, 2017

Edit file /server/agent.js and edit line 82 with the cron configuration you want. So if you want it to run every minute, it would be: cronTime: '0 * * * * *',

@bennycode
Copy link
Contributor Author

@NGPixel Do you know where to find the /server/agent.js file when using the Heroku Cloud Installation?

Heroku shows me in my dashboard that there is a "Heroku Git URL" for my Wiki application but when I clone it, Git says that I have cloned an empty repository.

@NGPixel NGPixel transferred this issue from requarks/wiki Dec 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants