Using local theme preview (Guide Professional) Follow

Comments

17 comments

  • Avatar
    Diziana

    Awesome! Much awaited feature. Thank you.

  • Avatar
    Dan Ross

    Hi Ryan,

    Are there provisions going to be made for accounts that have disabled password based authentication, as this affects API auth as well. 

     

     

  • Avatar
    Ryan McGrew

    Hey @Dan,

    It appears that there is a workaround with using an API token as a password for customers currently using SSO. I am working with some teams internally to get this documented and published and I can let you know when it's published.

    Thanks!

  • Avatar
    Shammel (Edited )

    How do I get rid of this warning when previewing a theme locally?

    Mixed Content: The page at 'https://backlog.zendesk.com/hc/en-us' was loaded over HTTPS, but requested an insecure stylesheet 'http://localhost:4567/guide/style.css'. This content should also be served over HTTPS.

  • Avatar
    Ryan McGrew

    Hey @Shammel,

    You'll need to make your browser allow unsafe scripts. In Chrome, it's fairly easy and you can take a look at the screenshot here https://cl.ly/2p0Z0D1e3x0Z

    Other browsers should be similar.

  • Avatar
    Shammel

    Thanks, @Ryan.

    But I already did that, which allows the CSS and JS to load. The problem is they are loading over HTTP when the page itself is loading over HTTPS.

  • Avatar
    Dan Ross

    When developing locally, you're serving from the filesystem, by default that will be without HTTPS, as no SSL certificates will exist. 

    This error should be showing when doing local development. 

    When you upload your theme to Zendesk Guide, the resources will be hosted under HTTPS (assuming you have an SSL certificate), and you should no longer get those errors. 

     

  • Avatar
    Shammel

    Ok. Thanks @Dan.

  • Avatar
    Shane Case

    @Ryan Is there any documentation on this for users that are using SSO yet?

  • Avatar
    Augusto Cravo Silva

    @Shane,

    You need to set up an API token and authenticate with that if you are using SSO.

    See more in https://developer.zendesk.com/rest_api/docs/core/introduction#api-token

    Your username is: {email}/token and the password is {token}

     

    Hope this helps :)

  • Avatar
    Ryan McGrew

    We've updated the docs for ZAT here - https://developer.zendesk.com/apps/docs/apps-v2/getting_started#create

  • Avatar
    Trapta

    Hi there,

    I am doing local development and every time I am saving changes the live reloading is throwing this error 

    What is wrong here?

    Thanks

  • Avatar
    Ryan McGrew

    @Trapta,

    I haven't seen this error before. Have your tried restarting the ZAT preview session to see if that fixes it? You should be able to hit ctrl-c to kill the process, then type zat theme preview again and navigate to the theme preview start URL.

     

    Thanks!

  • Avatar
    Trapta

    @Ryan,

    I did it several times but that doesn't fix the issue.

    Thanks
    Trapta

  • Avatar
    Ryan McGrew

    @Trapta,

    Is it possible something else in your environment is using port 4567 while you're running this? It could be that is colliding with live reload for ZAT. We haven't seen this issue before, unfortunately.

    Thanks!

  • Avatar
    Trapta

    @Ryan,

    I have checked that too and there is no other environment using this port.

    Thanks

  • Avatar
    Ryan McGrew

    Hmm... I'm not really sure @Trapa. It seems like something on your machine is preventing you from using that port. I haven't seen it reported it by anyone else, so it's hard to diagnose. We're using this library which doesn't have any open issues related to what you're running into - https://github.com/faye/faye-websocket-ruby

Please sign in to leave a comment.

Powered by Zendesk