yesodweb/yesod — pull request #162 by chreekat (2011-10-20 18:07:56+00:00)
Title: Scaffolding fix

DefaultEnv has data constructor 'Testing', not 'Test', but config/{settings,sqlite}.yml refer to 'Test', not 'Testing'.

Current code elicits:

```
b@mysitetest:~/MySite$ ./dist/build/mysite/mysite -e test
mysite: Invalid environment: test
b@mysitetest:~/MySite$ ./dist/build/mysite/mysite -e testing
mysite: user error (Could not find environment: Testing)
```

With the included change, the latter option should now work!

Full disclosure requires I mention I've only tested by manually changing the yml files in my code, and not from building yesod from scratch with these changes.