Version Control for sites
- This topic has 12 replies, 4 voices, and was last updated 3 months, 1 week ago by .
- March 31, 2020 at 7:47 am#2268Alex
please it is not clearly for me how to add for example GIT
Im on mac and if i got into default /users/alex/Documents/Publii/sites/
then into site name i see three folders: input, output and preview
i guess input is what i need to have in GIT, right?
but there, i cant find source file for my posts
ThanksMarch 31, 2020 at 9:19 am#2269Verhoeckx
All the files related to the visual part of your website are located in:
[name website]/input/themes/[name theme]
And yes, I would put the directory input in git.
VerhoeckxMarch 31, 2020 at 9:53 am#2273Alex
this is my folder you pointed me
What are the file(s) is(are) my source for my post(s), please?
You must be logged in to access attached files.March 31, 2020 at 10:35 am#2275Verhoeckx
Publii uses the index.hbs file to generate the homepage and the post.hbs file to generate the posts.
If you open one of those files you see that it contains HTML code and Handlebars code.
More information can be found here:
And more information about Handlebars can be found here:
https://handlebarsjs.com/March 31, 2020 at 12:04 pm#2276Alex
post.hbs within that folder is dated 20th of March
so this is not my file i want to version it
Simple Q: where are my sources, please? 🙁March 31, 2020 at 12:37 pm#2277Alex
Looks like all posts sources are stored in SQLite DB, damn it
I thought all is editable and outside. So no way to edit sources with 3rd party editors? @BobMarch 31, 2020 at 12:48 pm#2278BobSupportAlex, we really don’t have time to answer that kind of question.You have 3 different editors and still, need an external one to edit the content, so maybe you need another CMS?Where did you read/see that Publii supports version control?
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!March 31, 2020 at 12:59 pm#2279Alex
im just asking if there is a possibility to version control sources in Visual Studio Code. Idea is to use one editor for all your needs and have versions of your post work
You dont have time to answer customer Q? Good attitudeMarch 31, 2020 at 1:00 pm#2280Alex
and im talking about Source Code editor, not Markdown and two othersMarch 31, 2020 at 1:08 pm#2281BobSupport
There is only one possible right now: copy/paste.
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!March 31, 2020 at 1:34 pm#2282Alex
workaround is to have versioned sources somewhere and then copy/paste into publii?
No plans to have sources outside of the SQLite?March 31, 2020 at 1:37 pm#2283Verhoeckx
I’m not sure this is helpful but this how I work:
- Use Publii for everything that’s related to the content of the websites (text and images).
- Use an IDE for adjusting the theme (I use GNOME Builder but you are using Visual Studio Code).
- And use Dropbox to version your files (all my websites are in the directory (‘sites’) in a folder in Dropbox).
People do not normally use Dropbox to version a software project but it is perfectly possible if you are the only programmer.
Hope this helps.
ps. You can use ‘DB browser for sqlite’ if you want to look into the db.sqlite file (but keep the editing of this file to Publii!).November 26, 2020 at 4:34 pm#4625Szymon Koscielniak
Hi community, Hi Publii team,
Question to Bob or Tomasz,
I have stumbled upon this article a while ago, mentioning that sqlite engine has been rewritten:
It also mentions that possibility to work parallelly on the project should be coming thanks to that.
Is there maybe any good news, timeline regarding this? 🙂 I think it is an important feature for many many people.
And now question to community:
Has someone tried a workaround maybe?
Like some scripts running when committing that would dump database to another format and then do the otherwise when checking out commit?
You must be logged in to access attached files.
- You must be logged in to reply to this topic.