arachnys / cabot

Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty
MIT License
5.59k stars 593 forks source link

/bin/bash lessc on ubuntu server in aws #660

Open zeroshree opened 5 years ago

zeroshree commented 5 years ago

I clone repository in one aws ec2 machine based on debian.

I installed node v8.9.4 and installed lessc ,

but UI page is not working for me please have look into this.

getting this error and stuck in this since 2 days. Is there any hosted solution for cabot or ami. ??

screenshot from 2019-03-05 09-47-04

dbuxton commented 5 years ago

this is a legacy issue - the package is now called less not lessc

zeroshree commented 5 years ago

I am using docker-compose , and I saw in Dockerfile it has been instructed to install less@Version

With docker-compose locally working , but it's not working in EC2 machine.

varunchandak commented 5 years ago

facing the same issue when running from docker on a VM (GCP VM).

image

zeroshree commented 5 years ago

I resolved by doing bypass compress stuff

varunchandak commented 5 years ago

I resolved by doing bypass compress stuff

Can you help me with this ? Not much of a developer.

zeroshree commented 5 years ago

I did in following ways

git clone repository.

$cd cabot/cabot

$ vim settings.py

I Commented following lines

`COMPRESS_PRECOMPILERS = (

# ('text/coffeescript', 'coffee --compile --stdio'),

# ('text/eco',

#  'eco -i TEMPLATES {infile} && cat "$(echo "{infile}" | sed -e "s/\.eco$/.js/g")"'),

# ('text/less', 'lessc {infile} > {outfile}'),

) `

and in the end of the this file(settings.py) add this

COMPRESS_ENABLED=False