-
Notifications
You must be signed in to change notification settings - Fork 0
Remove 'runserver' in favor of 'start' #26
Comments
We can certainly do a better job at better documenting these commands, but I'm afraid that we need both. |
@regisb Is there any reason we wouldn't want |
This is a very good point! I attempted this some time ago and it didn't work, though I can't remember why. I tried again just now and I now realise that I can EDIT: I just remembered that |
@regisb Awesome! I'm excited that we can drop Or should those workflows be replaced with |
Yes,
For one-off tasks, |
I agree. Since switching from devstack, I do appreciate how Tutor can run commands with spinning up a persistent container.
I have not been able to recreate this. I tried adding an environment variable to docker-compose.yml:
and found that both I'll update the acceptance criteria of this issue to keep |
Right. I guess I was wrong about that. Now that you mention it, the actual problem that I faced in the past is that |
Whew, that is a very confusing Docker nuance 😛 That sheds light on one weird behavior I've noticed: using I think that it's because the Dockerfile sets DJANGO_SETTINGS_MODULE via an entrypoint script instead of setting it directly as using Do you know of any reason we couldn't pull DJANGO_SETTINGS_MODULE into the Dockerfile? |
Work-in-progress PR: kdmccormick/tutor#7 This is effectively blocked by #43 , because we can't remove |
@regisb I updated the acceptance criteria of this ticket, can you take a look to see if you agree? |
I do! Sorry about the delay :-/ |
No worries, thanks! @Carlos-Muniz If/when you need a new ticket, this one is ready to go. |
@kdmccormick I'm going to tackle this ticket if you want to assign it to me. |
Of the official Tutor Plugins:
|
I think a few of these services should add callbacks to the
I agree about the rest of the services. |
Local repo auto-mounting has been enabled for the following repos as requested:
|
New removal PR, on top of nightly instead of master: overhangio/tutor#718 |
Context
There are two ways to bring up services in dev mode:
tutor dev runserver myservice
tutor dev start [myservice1 myservice2 ...]
Command 1 has the advantage of accepting volume mounts and allowing debugger attachment.
Command 2 has the advantage of:
Are there other substantive differences? Could they be reconciled into a single command that supports all features?
Update
We have already:
tutor [dev|local] start
to mount volumes using the new--mount
commandtutor dev start
tutor dev runserver
as deprecated, since it no longer has any advantages overtutor dev start
. This was done in: Deprecate 'runserver' in favor of 'start' #61Acceptance Criteria
runserver
, wait until Tutor v14 is released.COMPOSE_MOUNTS
filter in order to automatically bind-mount folders as appropriate.runserver
withstart
--volume
option with an equivalent usage of the--mount
option.tutor dev runserver
.The text was updated successfully, but these errors were encountered: