Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support staging micropub servers #132

Open
capjamesg opened this issue Sep 14, 2020 · 5 comments
Open

Support staging micropub servers #132

capjamesg opened this issue Sep 14, 2020 · 5 comments

Comments

@capjamesg
Copy link

I have been testing my micropub server live using Quill now that I'm almost done. One issue I have encountered is that I cannot set a staging URL to which I can send test requests. I have had to change the micropub URL on my website to and from the staging URL during testing.

This may be somewhat of an edge case but it has been a major pain point while testing Quill. Some proposed ideas:

  • Allow users to specify a test URL as a header on their website to which they can send requests
  • Allow Quill to refresh a site without having to log out and authenticate from scratch

I am unsure whether these have broader interest so I'd like to hear from the community.

@jamietanna
Copy link

My implementation of a staging server is similar to yours - I have a separate identity + Micropub server for this purpose.

It appears that others in the community may be looking at the draft scope instead for this purpose

(Originally published at: https://www.jvt.me/mf2/2020/09/dstzp/)

@jamietanna
Copy link

Regarding logging in and logging out - I'd thoroughly recommend Firefox multi-account containers for this - I use it and it makes it super easy to flip between accounts and servers

(Originally published at: https://www.jvt.me/mf2/2020/09/c1qwk/)

@capjamesg
Copy link
Author

Thank you for the recommendation! I did not know that I could just authenticate in different environments. Would that solve my initial problem?

am no longer actively working on my micropub client but I think there will be others who have a similar issue. Even if I authenticate in a different session, I would still need to manually change the header tags on my site with my staging URL.

A potential solution could be to have a <meta> tag that lets a user specify a staging URL. Let me know if I am missing something obvious :)

@jamietanna
Copy link

Yes that's correct - if you wanted to continue using your primary identity URL, you'd need to update <meta> tags / Link HTTP headers.

For that reason, and to reduce risk of accidentally pushing something to my live site, when testing my staging infrastructure, I chose a separate identity, www.staging.jvt.me which simply hosts <meta> links to my staging server.

(Originally published at: https://www.jvt.me/mf2/2020/09/btcur/)

@capjamesg
Copy link
Author

Thanks for sharing your approach! It seems better to set up a staging site on which I could test first before setting up the main endpoint. I am no longer actively working on my micropub client but I think this documentation could be helpful for others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants