Yesod app deployment as CGI program -


already managed create yesod application running in "yesod -d devel". after that, modified in article configure yesod app cgi (i'm restricted cgi , won't have of development tools nor ghc on production environment) , did rebuild

cabal-dev clean && cabal-dev configure && cabal-dev build 

calling resulting binary hand simulate cgi environment, response:

invalid environment, valid entries are: [development,testing,staging,production] 

while --help gives me that:

usage: yussuf <environment> [--port <port>] valid environments: [development,testing,staging,production] 

when pass "production" first parameter, following response occurs:

getaddrinfo: not exist (name or service not known) 

so doing wrong? additional parameter mean i'll need sort of wrapper script correctly call application, or how work?

getaddrinfo: not exist (name or service not known) typically means dns query failed.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -

matlab - How to equate a structure array to structure array -