I've been making good progress with LESS this week. I've been using /localhost/ to develop a WordPress theme and the Less.app to compile the CSS every time I save.
... But then today, I pushed my WordPress site to a live server. I tried to make some style changes on the live site and naturally the LESS won't compile. I realized I didn't know how any of that would work in a live environment.
So, what do you use for your workflow, in terms of updating the live site? I use Coda so I could obviously just FTP the files up every time, though I'd rather have a quicker/safer way. Subversion?
Use version control - Git. Chris has some good videos on using Git, if you are on Windows or Mac the new Github for Windows/Mac app makes it even easier.
I disagree with @notfilc with Github's app, though, I think it's terrible. You're honestly better off using the command line than that thing. If you're in the market for an app, Tower is awesome (I believe that's what Chris uses as well).
Thanks guys. Actually, I do have the Github app. I use it to push changes to a free WordPress theme I host at Github. But I've never used it to update a live website. Hmm. I host everything at Eleven2 and it looks like they enable Git. Just not sure how to set it all up...
I don't like the Github app, altough I tried it only on Windows. I use SmartGit on Windows now as a GUI and I soppose on Mac there are better apps as well, e.g. Tower.
So when you guys develop a theme locally and want to push changes live (and track them), do you use Github, or SVN? Do I need certain credentials to set that up with my host? I have found I really really suck at UNIX/Terminal stuff, and would prefer some kind of GUI... :/
If you're feeling adventurous you can use Git with Capistrano. Capistrano will compile your repo into a tar ball and upload it (I think) via sftp. Capistrano is generally used by Rails developers, but I've gotten it to work on a couple PHP sites and I really enjoy it.
I've been making good progress with LESS this week. I've been using /localhost/ to develop a WordPress theme and the Less.app to compile the CSS every time I save.
... But then today, I pushed my WordPress site to a live server. I tried to make some style changes on the live site and naturally the LESS won't compile. I realized I didn't know how any of that would work in a live environment.
Could someone explain a bit?
Generally, you continue to develop locally, and upload changes as they are ready. So you don't compile LESS on the server.
Thanks Ross, I suspected as much.
So, what do you use for your workflow, in terms of updating the live site? I use Coda so I could obviously just FTP the files up every time, though I'd rather have a quicker/safer way. Subversion?
Use version control - Git. Chris has some good videos on using Git, if you are on Windows or Mac the new Github for Windows/Mac app makes it even easier.
There's nothing wrong with SFTP.
If you want to keep track of those changes (entirely different) I'd recommend using Git.
I disagree with @notfilc with Github's app, though, I think it's terrible. You're honestly better off using the command line than that thing. If you're in the market for an app, Tower is awesome (I believe that's what Chris uses as well).
Thanks guys. Actually, I do have the Github app. I use it to push changes to a free WordPress theme I host at Github. But I've never used it to update a live website. Hmm. I host everything at Eleven2 and it looks like they enable Git. Just not sure how to set it all up...
I don't think anyone was recommending that you use it to update a live website.
(though it is a possibility)
I don't like the Github app, altough I tried it only on Windows. I use SmartGit on Windows now as a GUI and I soppose on Mac there are better apps as well, e.g. Tower.
So when you guys develop a theme locally and want to push changes live (and track them), do you use Github, or SVN? Do I need certain credentials to set that up with my host? I have found I really really suck at UNIX/Terminal stuff, and would prefer some kind of GUI... :/
Personally, I keep pushing to Github and pushing to live as two separate things.
I use Coda and FTP as well, and it works fine for me. I rarely find myself needing to track changes on my simple blog.
If you still want to do it (and it is a good idea), I would recommend some of Chris's screencasts on Git.
If you're feeling adventurous you can use Git with Capistrano. Capistrano will compile your repo into a tar ball and upload it (I think) via sftp. Capistrano is generally used by Rails developers, but I've gotten it to work on a couple PHP sites and I really enjoy it.
Here's an article that I wrote that covers a basic deploy script for Capistrano with PHP. http://baylorrae.com/easy-php-deployments-with-capistrano-with-shared-hosting/