- This topic is empty.
-
AuthorPosts
-
March 18, 2014 at 11:18 pm #166211
nixnerd
ParticipantI mentioned this briefly on another thread but now I’d like to fully flesh this out and get some input.
I don’t have a problem with WordPress per se. By that I mean: I guess there’s nothing intrinsically wrong with the philosophy behind it. That part I think is quite good. However, I find that for my purposes, it doesn’t totally work.
First of all, I don’t enjoy the process of theming it. That’s just a personal preference but I still don’t like it. I’ve done a TON of WordPress hacking, going back over 6 years. I’ve been very successful at modifying/creating WordPress themes but I never feel I have as much control as I do with a static site. Second, I don’t like that every page needs a server call to load. For where I’m at right now… speed is king. Third, I don’t like its track record on security.
Now, before anybody gets upset, I understand that all the security exploits are not necessarily WordPress’ fault. I get that not keeping things up to date, ESPECIALLY third-party plugins is where the vast majority of problems come from. However, it’s still unsettling.
My idea is something similar to Kirby… except open-source and free.
Basically, there would be a local git repo on your system that is an exact mirror of your actual site. This is great because most people already have this! Yay! Hooray for no extra work! You would then have a Python script that monitors specific directories for changes. As soon as a new file is added, it automatically does a
git push
to your site. This part is awesome because it acts like a dynamic site but it’s not. It’s pre-baked on your system and is actually static when it’s live. But, it’s updated immediately upon any changes being made, making it essentially dynamic.The benefits here are many:
- It’s simple.
- It reduces the risk of security exploits due to the fact that you don’t have scripts accessing a database on your server.
- It’s even easier than logging into some sort of control panel because it’s on your desktop.
- MAXIMUM flexibility. I can’t see how this would cramp anyone’s design style in any way at all. No child themes. No nonsense.
I understand there are drawbacks and this really only works for content management. This could never work with users, logins, comments, etc. You know… all the OTHER stuff a DB handles. But, for simple blogs or sites with no user-generated content… this seems like an awesome solution.
What do you guys think?
March 19, 2014 at 12:19 am #166230nixnerd
ParticipantThanks for your input @JoshWhite.
I should have made it clear that I personally will NOT be using this on client websites. I think the potential to mess things up is too great for them. This will just be for my use.
Sorry for the confusion.
March 20, 2014 at 11:09 am #166385nixnerd
ParticipantWell, simply for the easy of writing a little blog post and just clicking save. I can definitely jump in the terminal and push it… just not as easily.
Plus, I’m working on a project that will need to do this EXACT thing. So, I figured I could kill two birds with one stone and ditch WordPress in the process.
I mean, I disable comments anyway, so I don’t know why I’d ever need WordPress.
March 20, 2014 at 12:27 pm #166404Alen
ParticipantI see few potential issues going forward
- Git doesn’t work like you’re intending on using it:
- Make Changes
- Stage Changes
- Commit Changes
- Push Changes
- How would you deal with editors that auto save?
March 20, 2014 at 12:35 pm #166406__
ParticipantOT:
Did something important happen, Joe?
I see few potential issues going forward
I’d agree. Further, the bigger problem I see is that by auto-pushing you’re effectively returning to the days of “cowboy coding,” making real-time changes to live sites.
I think using git as a publishing system is a great idea (it’s one of the main uses I have for it), but it’s important that you actually have to “push the button.” Now, a small desktop utility that manages this could be pretty damn cool.
March 20, 2014 at 12:38 pm #166409nixnerd
ParticipantHow would you deal with editors that auto save?
You’re absolutely right that has not been thought of. The reason why is because I’m pretty sure Vim doesn’t save by default… which is what I will use it with. BUUUUT, I know a lot of editors do auto save. Hmmm. Interesting problem.
As far as Git doing the work… it really doesn’t. Python scripts are what will actually handle the heavy lifting. They’ll just utilize Git to push files.
There’s one even bigger problem though: Permissions.
Generally, root permission is required to perform any sort of git push. I think that would probably be set on my server but in order to make everything seamless, I’m pretty sure I’d have to change the permission of the directory that houses everything. That is no bueno and will COMPLETELY eliminate any security benefits from this method.
March 20, 2014 at 12:50 pm #166412Alen
Participantroot permission is required to perform any sort of git push.
If you set up your SSH session/key stuff you will not need to enter your username/password when you push changes. That’s how I have it set up on my machine.
March 20, 2014 at 1:05 pm #166418nixnerd
ParticipantIf you set up your SSH session/key stuff you will not need to enter your username/password when you push changes.
You’re actually right. However, I think the server will still need to sudo to pull it? I actually don’t know this because I NEVER bypass Github. I push to Github from my machine (and do not need to sudo) and then pull from my remote server (this is where sudo is required). I’ve never pushed straight to a server, so I don’t know what happens. It’s worth a shot though.
Did something important happen, Joe?
Ha ha ha, no. I’m coming up on my 5 year anniversary. Maybe I should add an updated pic. I just saw that on my comp so I uploaded it. I’ll look for something newer.
March 20, 2014 at 1:08 pm #166420__
ParticipantI’m coming up on my 5 year anniversary. Maybe I should add an updated pic.
Nahh, just wondering. Congrats!
March 20, 2014 at 2:16 pm #166437nixnerd
ParticipantNahh, just wondering. Congrats!
Thanks!
If objectifying code is wrong… OO, I don’t want to be right.
Ha!
March 20, 2014 at 2:20 pm #166438__
Participanthehehe… I tried this avatar on another forum once. no one got it.
I also have a philosoraptor that reads,
“gang of four”
discourages tight coupling?
March 20, 2014 at 3:59 pm #166454nixnerd
ParticipantAwesome. Just awesome.
March 20, 2014 at 4:15 pm #166457iphdesgin
ParticipantI think this is a brilliant idea. Have you hosted with heroku? It uses git with a small tool belt to handle deploying and updating sites.
I like this idea a lot, I would use it.May 2, 2014 at 11:00 pm #169126nixnerd
ParticipantMy apologies everyone. It seems as though I’ve independently come to a conclustion that others have come to.
This is literally EXACTLY what Jekyll does… err, can do. No need to build it now!
-
AuthorPosts
- The forum ‘Other’ is closed to new topics and replies.