mirror of https://github.com/statping/statping
sass issues
parent
191b97b7b7
commit
835bb5e618
2
Makefile
2
Makefile
|
@ -202,7 +202,7 @@ clean:
|
|||
find . -name "*.out" -type f -delete
|
||||
find . -name "*.cpu" -type f -delete
|
||||
find . -name "*.mem" -type f -delete
|
||||
rm -rf {build,releases,tmp}
|
||||
rm -rf {build,releases,tmp,source/build}
|
||||
|
||||
print_details:
|
||||
@echo \==== Statping Development Instance ====
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
# Statping - Status Page & Monitoring Server
|
||||
An easy to use Status Page for your websites and applications. Statping will automatically fetch the application and render a beautiful status page with tons of features for you to build an even better status page. This Status Page generator allows you to use MySQL, Postgres, or SQLite on multiple operating systems.
|
||||
|
||||
[](https://godoc.org/github.com/statping/statping) [](https://slack.statping.com) [](https://microbadger.com/images/statping/statping) [](https://hub.docker.com/r/statping/statping/builds/)
|
||||
[](https://github.com/statping/statping/workflows/Master%20Release/badge.svg) [](https://godoc.org/github.com/statping/statping) [](https://slack.statping.com) [](https://microbadger.com/images/statping/statping) [](https://hub.docker.com/r/statping/statping/builds/)
|
||||
|
||||
<br><br>
|
||||
<img align="left" width="320" height="235" src="https://img.cjx.io/statupsiterun.gif">
|
||||
|
@ -38,7 +38,7 @@ The Status binary for all other OS's is ~17Mb at most.
|
|||
|
||||
<img align="left" width="320" height="235" src="https://img.cjx.io/statping_iphone_bk.png">
|
||||
<h2>Mobile App is Gorgeous</h2>
|
||||
The Statping app is available on the App Store and Google Play for free. The app will allow you to view services, receive notifications when a service is offline, update groups, users, services, messages, and more! Start your own Statping server and then connect it to the app by scanning the QR code in settings.
|
||||
The Statping app is available on the App Store and Google Play for free. The app will allow you to view services, receive notifications when a service is offline, update groups, users, services, messages, and more! Start your own Statping server and then connect it to the app by scanning the QR code in settings.
|
||||
|
||||
<p align="center">
|
||||
<a href="https://play.google.com/store/apps/details?id=com.statping"><img src="https://img.cjx.io/google-play.svg"></a>
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/statping/statping/source"
|
||||
"github.com/statping/statping/utils"
|
||||
"net"
|
||||
)
|
||||
|
||||
// UsingAssets will return true if /assets folder is present
|
||||
func UsingAssets() bool {
|
||||
return source.UsingAssets(utils.Directory)
|
||||
}
|
||||
|
||||
// GetLocalIP returns the non loopback local IP of the host
|
||||
func GetLocalIP() string {
|
||||
addrs, err := net.InterfaceAddrs()
|
||||
if err != nil {
|
||||
return "http://localhost"
|
||||
}
|
||||
for _, address := range addrs {
|
||||
// check the address type and if it is not a loopback the display it
|
||||
if ipnet, ok := address.(*net.IPNet); ok && !ipnet.IP.IsLoopback() {
|
||||
if ipnet.IP.To4() != nil {
|
||||
return fmt.Sprintf("http://%v", ipnet.IP.String())
|
||||
}
|
||||
}
|
||||
}
|
||||
return "http://localhost"
|
||||
}
|
|
@ -9,6 +9,7 @@ import (
|
|||
"github.com/russross/blackfriday/v2"
|
||||
"github.com/statping/statping/utils"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
@ -44,6 +45,12 @@ func scssRendered(name string) string {
|
|||
func CompileSASS(files ...string) error {
|
||||
sassBin := utils.Params.GetString("SASS")
|
||||
|
||||
path, err := exec.LookPath("sass")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
sassBin = path
|
||||
|
||||
for _, file := range files {
|
||||
scssFile := fmt.Sprintf("%v/assets/%v", utils.Params.GetString("STATPING_DIR"), file)
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ func (t Timestamp) Ago() string {
|
|||
// Command will run a terminal command with 'sh -c COMMAND' and return stdout and errOut as strings
|
||||
// in, out, err := Command("sass assets/scss assets/css/base.css")
|
||||
func Command(name string, args ...string) (string, string, error) {
|
||||
Log.Debugln("running command: " + name + strings.Join(args, " "))
|
||||
Log.Info("running command: " + name + strings.Join(args, " "))
|
||||
testCmd := exec.Command(name, args...)
|
||||
var stdout, stderr []byte
|
||||
var errStdout, errStderr error
|
||||
|
|
Loading…
Reference in New Issue