Local Server Helping


#1

Hi guys, I live in Asia that so far away from the official server. So I hope I can build own. But when I put the line: “sudo docker-compose run web rake assetsprecompile”, and it shows the error that picture below. Does any one can help me find out where is going wrong. Thank you so much!`


#2

@Stack

You probably need to delete the following ENV variables from .env:

ROLLBAR_ACCESS_TOKEN
ROLLBAR_CLIENT_TOKEN

With that being said, most self-hosting users should delete everything after NO_EMAILS in example.env.


#3

Thank you so much!! It works, but still have some other problemWechatIMG186WechatIMG187


#4

@Stack You need to delete all the unused environment variables still. You are seeing that error because you did not delete the environment variables defined below NO_EMAILS.


#5

Your config must look like this and contain nothing more

MQTT_HOST=192.168.1.x
API_HOST=192.168.1.x
API_PORT=3000
POSTGRES_PASSWORD=xxxxxx
DEVISE_SECRET=aa9d256a09fb208c0e1afa85e2ddce339d57a449e080e5269f691229d37f060c926772296c689d1560fcb758b48984c1236f28e709467c4facee23df2f24b7c7
ADMIN_PASSWORD=txxxxxx
SECRET_KEY_BASE=5cb8b65759490d9856a0ef5c5e1079a58842715e84d76a964b72d61ba165dfe0540b46a933639955900092c3609ad5e628e0557ce2759a9ae04fba8eabb34b47
#RAILS_ENV=production
NO_EMAILS=TRUE
FORCE_SSL=Remove this if not using HTTPS://


#6

Thank you