Guest User

Untitled

a guest
Dec 31st, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. with open("origami.env", "w") as f:
  2. host = raw_input("Enter HOST ") or "localhost"
  3. port = raw_input("Enter PORT ") or "80"
  4. dbname = raw_input("Enter DB_NAME ")
  5. dbpass = raw_input("Enter DB_PASS ")
  6. dbuser = raw_input("Enter DB_USER ")
  7. dbemail = raw_input("Enter DB_USER_EMAIL ")
  8. dbhost = raw_input("Enter DB_HOST ") or "localhost"
  9. redishost = raw_input("Enter REDIS_HOST ") or "localhost"
  10. cont = "set -a\nHOST="+host+"\nPORT="+port+"\nDB_NAME="+dbname+"\nDB_PASS="+dbpass+"\nDB_USER="+dbuser+"\nDB_USER_EMAIL="+dbemail+"\nDB_HOST="+dbhost+"\nREDIS_HOST="+redishost+"\nset +a"
  11. f.write(cont)
Add Comment
Please, Sign In to add comment