Publish a quarto blog to netlify from RStudio cloud?

Is it possible to publish a quarto blog to netlify from RStudio cloud?

My Rstudio cloud project of the example blog is: https://rstudio.cloud/content/4302652

The error I receive is:

/cloud/project/myblog$ quarto publish netlify
? Authorize (Y/n) › Yes
[3159:3159:0727/213735.233585:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
[3159:3159:0727/213735.233635:ERROR:env.cc(226)] The platform failed to initialize.  Exiting.
/usr/bin/xdg-open: 869: firefox: not found
/usr/bin/xdg-open: 869: iceweasel: not found
/usr/bin/xdg-open: 869: seamonkey: not found
/usr/bin/xdg-open: 869: mozilla: not found
/usr/bin/xdg-open: 869: epiphany: not found
/usr/bin/xdg-open: 869: konqueror: not found
/usr/bin/xdg-open: 869: chromium: not found
/usr/bin/xdg-open: 869: chromium-browser: not found
[3209:3209:0727/213735.349186:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
[3209:3209:0727/213735.349248:ERROR:env.cc(226)] The platform failed to initialize.  Exiting.
/usr/bin/xdg-open: 869: www-browser: not found
/usr/bin/xdg-open: 869: links2: not found
/usr/bin/xdg-open: 869: elinks: not found
/usr/bin/xdg-open: 869: links: not found
/usr/bin/xdg-open: 869: lynx: not found
/usr/bin/xdg-open: 869: w3m: not found
xdg-open: no method available for opening 'https://app.netlify.com/authorize?response_type=ticket&ticket=d2e96e3bdbd10545f54d74a157a203ad'

The sample blog published from my desktop version of RStudio using the same command (quarto publish netlify) in the terminal (here).

Thanks for any help!

Hi there,

I'm sorry to hear you're having trouble publishing to Quarto Pubs on RStudio Cloud.

It looks like quarto is trying to open a local web browser, which doesn't work on RStudio Cloud.

Can you try publishing using the --no-browser option?

quarto publish --no-browser

If this resolves the issue, I'll file a bug with quarto to get that fixed.

-Andy

Hi, thanks for the reply,

I tried

quarto publish --no-browser netlify

and received the same errors.

I made my cloud project https://rstudio.cloud/content/4302652 public.

Hi there,

I've opened an issue with quarto to investigate this further:

-Andy

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.