Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS how do you compile LESS -> on a live WordPress site?

  • This topic is empty.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #42211
    divinehammer
    Participant

    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?

    #122094
    rosspenman
    Participant

    Generally, you continue to develop locally, and upload changes as they are ready. So you don’t compile LESS on the server.

    #122142
    divinehammer
    Participant

    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?

    #89776
    notfilc
    Member

    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.

    #122144
    TheDoc
    Member

    There’s nothing wrong with SFTP.

    If you want to *keep track* of those changes (entirely different) I’d recommend using Git.

    #122145
    TheDoc
    Member

    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).

    #122146
    divinehammer
    Participant

    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…

    #122147
    TheDoc
    Member

    I don’t think anyone was recommending that you use it to update a live website.

    #122148
    TheDoc
    Member

    (though it is a possibility)

    #122151
    uneart
    Member

    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.

    #122162
    divinehammer
    Participant

    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… :/

    #122165
    TheDoc
    Member

    Personally, I keep pushing to Github and pushing to live as two separate things.

    #122184
    rosspenman
    Participant

    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](https://css-tricks.com/video-screencasts/) on Git.

    #122221
    BaylorRae
    Member

    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/>

Viewing 14 posts - 1 through 14 (of 14 total)
  • The forum ‘CSS’ is closed to new topics and replies.