Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8939693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:52:26+00:00 2026-06-15T10:52:26+00:00

Friend designer of mine was compiling his LESS file manually and uploading it with

  • 0

Friend designer of mine was compiling his LESS file manually and uploading it with Coda (Remote Site) spending lots of precious time. He asked me:

Is it possible to automatically detect file change on the Linux server and compile without delay at all?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:52:27+00:00Added an answer on June 15, 2026 at 10:52 am

    I have made a script and I publish the details:

    • Easy to use for designers
    • Executes LESS compiler immediately after file is saved, without consuming server resources
    • Any editor capable of remote editing will work with this solution – Code, Sublime Text, Textmate

    First, you need to install “npm” on the server by typing this into the console:

    sudo apt-get install npm inotify-tools
    sudo npm install -g less
    sudo nano /usr/local/bin/lesscwatch
    

    Paste the following into the file:

    #!/bin/bash
    # Detect changes in .less file and automatically compile into .css
    [ "$2" ] || { echo "Specify both .less and .css files"; exit 1; }
    inotifywait . -m -e close_write | while read x op f; do.
        if [ "$f" == "$1" ]; then.
            lessc $f > $2 && echo "`date`: COMPILED";.
        fi
    done
    

    Save, exit, then execute:

    sudo chmod +x /usr/local/bin/lesscwatch
    

    You are all done. Next time you need to work with your LESS files, you will need to open terminal (Coda has a built-in), go to the folder of your file (using cd) and execute this:

    lesscwatch main.less main.css
    

    It will output information about successful compilations or errors. Enjoy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My designer friend is convinced that the iPhone is compressing his wallpaper images. I
A friend of mine is making the jump from graphic designer to game developer,
I'm getting this error when compiling my JRXML file in iReport 3.1.2: com.jaspersoft.ireport.designer.errorhandler.ProblemItem@f1cdfb The
Friend of mine wanted introduce in his company emails PGP encryption for exchange mails
I have a friend of mine who owns his own software consulting business. Most
The only place I've seen the Friend modifier used is in the WinForms designer,
My friend gave me a database file: record.mdf . I copied that .mdf file
A friend of mine is making a trivia game in C++, and I am
I'm working with a designer friend on an iPhone app and he likes to
In Windows Forms projects, why does the designer by default use the Friend WithEvents

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.