Next: Working with Nginx, Previous: Emit Response, Up: Basic in GNU Artanis [Contents]
(run #:host #f #:port #f #:debug #f #:use-db? #f #:dbd #f #:db-username #f #:db-passwd #f #:db-name #f)
You may see all the keyword is #f in default, this means these items will be gotten from config file.
But you can specify them as will.
#:host specify the hostname.
#:port specify the socket port of the server.
#:debug set #t if you want to enable debug mode. Maybe verbose.
#:use-db? set #t if you want to use DB, and GNU Artanis will init DB config for you.
#:dbd choose dbd, there’re three supported dbd: mysql, postgresql, and sqlite3.
#:db-username specify the username of your DB server.
#:db-passwd the DB password.
#:db-name specify DB name.