Browse Source

fix HOST not sending correctly

Josh Bicking 7 years ago
parent
commit
757d9f88cb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Dockerfile
  2. 1 1
      start.sh

+ 1 - 1
Dockerfile

@@ -7,4 +7,4 @@ ADD start.sh /start.sh
 CMD chmod +x /start.sh
 EXPOSE 3000 9000
 ENV HOST=localhost
-CMD su -c "$HOST /start.sh"
+CMD su -c "export HOST=$HOST && /start.sh"

+ 1 - 1
start.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-sed 's/localhost/$HOST/' /sendd/public/javascripts/index-localhost.js > /sendd/public/javascripts/index.js
+sed "s/localhost/$HOST/" /sendd/public/javascripts/index-localhost.js > /sendd/public/javascripts/index.js
 
 cd /sendd