Join the Webstudio community

Updated 2 months ago

Hello,I am currently self-hosting Webstudio, and

At a glance
This post has been deleted.
B
f
28 comments
Great! Do you have any question?
just the time to write it pressed enter zccidently
Trying to be clear : with the webstudio cli, I cannot export my website because it needs to access the assets, but fot that my website needs to be published, but I can't publish my website from the webstudio editor, because i can't use a domain name
See, you click publish and create a record in db, even though it shows "not implemented error". Then you create shared link and paste it into CLI.
After init you need to run build command with --preview flag, which btw I just dropped and we will release new CLI soon.
So webstudio init will just work
nvm just checked the help
well the cli still wants to retrieve the assets from the published website
I used this webstudio build --preview --template ssg
is there a file to edit to tell him to not search on a not published website
I'm not sure I understand. You uploaded assets and don't want CLI to download them? How else you will see images on website?
Okay, let's rephrase this.

1) Self hosting Webstudio
2) Website has been made, with two images uploaded
3) I want the site as a static page (html, css and js files only).
4) Export to zip button inside webstudio editor does not work as intended (although it adds a record in the database...?)
5) Webstudio cli fails to retrieve assets (images I uploaded) when using
Plain Text
webstudio build
(no matter if --preview, --assets are used).
The CLI states that it try to retrieve assets from the published website BUT :
  • I did not publish the website
  • The CLI uses the default URL for published websites onto Webstudio.
My question being :
1) Is it possible to create a zip file (like the online version does), for a static page, from the CLI (considering its not possible directly inside the self hosted Webstudio editor) ?
on a side note this software is amazing !
5) Webstudio cli fails to retrieve assets (images I uploaded) when using
What error do you see?
I did not publish the website
download button creates record so kinda publishing
1) Is it possible to create a zip file (like the online version does), for a static page, from the CLI (considering its not possible directly inside the self hosted Webstudio editor) ?
Yes, CLI will generate an app, you run npm run build command and static files will be at dist/client (I think), you can zip them and upload to netlify for example
on a side note this software is amazing !

Thanks! Self hosted builder story is yet to improve, we are a very small team
It simply tells me : failed to retrieve assets, and presents me with a wrong URL. I'll hook up the pic in a few minutes
Thanks a lot ! Just gotta figure out the story with the wrong URL
In my self-hosted editor, by default, the editor has this by default as a domain it will publish the site to
Attachment
gpg8IRw.png
Now, if I use the CLI, this happens
Yes, this will be fixed in coming release. For now you need ro run webstudio build command with --preview flag
Does it work?
Assuming I'm using the right command :
Plain Text
webstudio build --preview --template ssg
, no it doesn't
I've tried with all other templates, same thing.
if I could get to the actual config files of the project may be I would be able to change this rul to something else
Got it, yeah it's broken
And will be fixed with coming release
Add a reply
Sign up and join the conversation on Discord