Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2304 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

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:

  1. What template files in tg.devtools have the information for this command?

Thanks, Lucas

Attachments

deployment.ini.6554.diff Download (4.3 KB) - added by lszyba1 10 years ago.
deployment patch

Change History

comment:1 Changed 10 years ago by lszyba1

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

Changed 10 years ago by lszyba1

deployment patch

comment:2 Changed 10 years ago by lszyba1

ok..if the current version is still in svn...here is a patch.

  1. renamed the file
  2. commented out the port
  3. added the sqlalchemy syntax lines, (its hard to remember what the proper line is)

Lucas

comment:3 Changed 10 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 10 years ago by pjenvey

  • Milestone changed from 2.0 to 2.0rc2

this should make it for rc2

comment:5 Changed 10 years ago by mramm

  • Owner set to mramm
  • Status changed from new to assigned

fixed in r6563:

comment:6 Changed 10 years ago by mramm

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.