Update INSTALL.md #10
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-directory#10
Loading…
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add Nginx configuration line
Thanks for your contribution, what about URL rewriting? On Apache it is taken care of by the
.htaccess
file inpublic/
but it won't be picked up by nginx.I'm not sure I understand the issue. I have this line:
Does that make sense?
Not using nginx, I'd be unable to tell, but if it works for you then it should be ok.
Ahh.. There is actually an issue. Compare this:
https://dir.hubup.pro/search?q=art
https://dir.friendica.mrpetovan.com/search?q=art
Indeed. Looking into the Apache rewriting, it turns out there's no translation from the URI to a query string. The
q=$uri
may be extraneous in your example.It's a puzzle everything works apart from the tag search. Compare:
https://dir.hubup.pro/search?q=linux
https://dir.hubup.pro/search?field=country&q=United%20Kingdom
I've read his nginx page https://www.nginx.com/blog/creating-nginx-rewrite-rules/ but I don't know what I'm looking for.
Do you have any idea what is is not rewritten?
Error log output
Arg, I found the issue. I got this error before so I quickly updated the schema on my database but I didn’t reflect the change in the migration script.
Please update to the latest master, I won't push a release until I can make a proper project archive.
New release v2.0.4 pushed, I changed the INSTALL instructions, which makes conflicts with your changes.
Well done, Hypolite! Glad you found it. Thanks!
I'll update to the new release this evening, test the nginx configuration again, and resolve the conflict.
Also I'll be adding some tags to my profile soon too. ^-^
Do you plan to add the nginx rewrite rule?
I was planning to, but something is still not working. It's not populating the directory properly. Logs look ok.
All three profile entries you see https://dir.hubup.pro/ are added manually via console.
This is the only error I can see.
bin/console dbupdate Updating database schema to latest version... [Error] Database was not fully updated. Use --force for migrate
Could this be a permission issue? I'm running this under a dedicated user that is part of the www-data group. Cron job also runs under this user.
I did a clean installation today with the latest master because of the above db error.
Searching tags is now working but
profile_poll_queue
is the only table that is empty in the db.(Signing off now. Catch you later. Cheers.)
Can you please add
at the same level as
"database"
in yourconfig/local.json
?Did you add a remote directory to your poll queue like
bin/console directory-add https://dir.friendica.social
? If you didn't, then you won't get much data.Yep. I've added two remote directories. This one and Adam's.
I'll add the logger level this evening and report back. Lets just wait with this PR until everything works properly and then I update the rewrite rules.
Interestingly the server list of the directory is filling up as expected; it's only the profiles that don't seem to work.
Found the issue, a wrong boolean condition: https://github.com/friendica/friendica-directory/releases/tag/v2.0.6
Your directory should fill up next time the directories will be polled. You can set the
next_poll
column toNOW()
in thedirectory_poll_queue
table to force the issue.Great. I'll update to 2.0.6 as soon as I have shell access. Thanks!
Now, it works like a charm!
Could you please review the rewrite settings. Some of it might be superfluous; it works though.
@ -62,6 +62,22 @@ In your Virtual Host file, set your document root as follow:
DocumentRoot /path/to/friendica-directory/public/
Are you sure you need the
q=$uri
here?@ -62,6 +62,22 @@ In your Virtual Host file, set your document root as follow:
DocumentRoot /path/to/friendica-directory/public/
Not required. I removed it.
What about these
ttf|woff|svg
?@ -62,6 +62,22 @@ In your Virtual Host file, set your document root as follow:
DocumentRoot /path/to/friendica-directory/public/
We use fontawesome so I would keep the mentions of the fonts and svg files.
Thanks for your contribution!
@ -62,6 +62,22 @@ In your Virtual Host file, set your document root as follow:
DocumentRoot /path/to/friendica-directory/public/
OK. Thanks.
My pleasure!