Ticket #2304 (closed defect: fixed)
Invalid production conf file in paster make-config
| Reported by: | lszyba1 | Owned by: | mramm |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0final |
| Component: | TurboGears | Version: | trunk |
| Severity: | critical | Keywords: | production.ini |
| Cc: |
Description
paster make-config myapp production.ini Generates:
creates: [app:main] use = egg:myapp
It should generate a file just like development.ini except:
debug = false
#host = 127.0.0.1 #port = 8080
Similar to #2050 but make-config was chosen to make it similar to pylons.
How to fix:
- What template files in tg.devtools have the information for this command?
Thanks, Lucas
Attachments
Change History
comment:2 Changed 3 years ago by lszyba1
ok..if the current version is still in svn...here is a patch.
- renamed the file
- commented out the port
- added the sqlalchemy syntax lines, (its hard to remember what the proper line is)
Lucas
comment:3 Changed 3 years ago by pjenvey
You're right, just renaming the file should solve this
It's actually a template template, so it should be called config/production.ini_tmpl_tmpl within the tg paster create template
Then it's called production.ini_tmpl within actual tg projects -- as it's a template which paster make-config interpolates
comment:4 Changed 3 years ago by pjenvey
- Milestone changed from 2.0 to 2.0rc2
this should make it for rc2

Solution:
Rename the deployment.ini in a config folder to: deployment.ini_tmpl
I guess the tg.devtools need to change but one would need to test if: http://trac.turbogears.org/browser/projects/tg.devtools/trunk/devtools/templates/turbogears/%2Bpackage%2B/config/deployment.ini_tmpl
deployment.ini_tmpl should be called deployment.ini_tmpl_tmpl or? Final name needs to be "deployment.ini_tmpl" so we need to test it.
I would test it but I haven't checkout the mercurial stuff...
Thanks, Lucas