Kronborg
Go api with gofiber using session storage with redis
Hello
i start to get this Error:
/app/api/database/connect.go:28 +0x15b
main.main()
/app/main.go:73 +0x4a
panic: dial tcp: lookup containers-us-west-181.railway.app: i/o timeout
somtimes is stop after 1 min somtimes is take 5 min
here is the conntion:
func InitRedis() (*redis.Storage, error) {
port, err := strconv.Atoi(os.Getenv("REDISPORT"))
if err != nil {
port = 6379
}
storage := redis.New(redis.Config{
Host: os.Getenv("REDISHOST"),
Port: port,
Username: os.Getenv("REDISUSER"),
Password: os.Getenv("REDISPASSWORD"),
Database: 0,
Reset: false,
TLSConfig: nil,
PoolSize: 10 * runtime.GOMAXPROCS(0),
})
return storage, nil
}
i have add the log file
19 replies
Django Hosting
Hey im trying to host a django app/website but it can't find my static folder i get this error
?: (staticfiles.W004) The directory '/app/static' in the STATICFILES_DIRS setting does not exist.
Not Found: /static/styles.css
Not Found: /static/media/icon.png
Not Found: /static/style.css
i have add this to my settings file
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
STATIC_ROOT =os.path.join(BASE_DIR, 'staticfiles')
i run python manage.py collectstatic
27 replies