#1392: Implement "tg-admin serve"
------------------------+---------------------------------------------------
Reporter: alberto | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 1.1
Component: TurboGears | Version: trunk
Severity: normal | Keywords:
------------------------+---------------------------------------------------
Add a new command to tg-admin to start up a TG app without the need of
start-myapp.py.
This command should expose "paster serve"'s interface but be clever enough
so that, when called inside an egg dir when developing, it can
automatically boot the current app with no arguments or deployment config.
The command should also be able to receive a deployment config file as
parameter to start up arbitrary paste.deployable apps.
Some examples:
{{{
tg-admin serve
}}}
Serves the app in the current directory (which should be a TG project)
{{{
tg-admin serve --reload
}}}
Same as the above but turns automatic reloading on (maybe enable by
default in config-less mode since it is assumed to be used in dev. mode?)
{{{
tg-admin serve myapp.ini
}}}
Default way to start up a TG app from a deployment config. This command
can be used in supervisord scripts, init.d scripts, etc... on a production
site.
{{{
tg-admin serve --egg MySuperBlog prod.cfg
}}}
Refers to an app's egg and serves it using the specified TG-style config.
An alternative way to boot an app which doesn't require a deployment
config.
More syntax suggestions welcomed :)
This ticket is really easy to implement by someone familiar with tg.admin
commands internals since it's a thin wrapper around "paster serve". Good
food for sprint.
Alberto
--
Ticket URL: <http://trac.turbogears.org/ticket/1392>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en
-~----------~----~----~----~------~----~------~--~---