django-simple-deploy icon indicating copy to clipboard operation
django-simple-deploy copied to clipboard

Post deployment tasks, and createsuperuser

Open glasnt opened this issue 3 years ago • 2 comments

I've mentioned this in all my run throughs so far (#152, #156, #158), and I think it needs a separate issue.

The first time a user encounters createsuperuser in the canonical Django tutorial is mid way through part 2. Given a user's first simple-deploy will have a different database, I think this is one of things Important Things that should be included in the post-deployment output for each platform.

I don't think django-simple-deploy should create an admin user for users, but I think it should detail how to run manage.py commands for the platform of choice. The success_msg should probably be updated to include at least how to invoke the console, if not a suggested command.

Here's the full details for each current platform.

  • Heroku run:
    heroku run python manage.py createsuperuser
    
  • Fly.io ssh console:
    flyctl ssh console
    # /code/manage.py createsuperuser
    
    • specifically because the default pwd of ssh console is /.
  • Platform.sh ssh:
    platform ssh
    $ python manage.py createsuperuser
    

glasnt avatar Oct 24 '22 02:10 glasnt

I was thinking this would need to go in the friendly deployment summary, but it's short enough that it can probably go in the success messages as well.

ehmatthes avatar Oct 24 '22 20:10 ehmatthes

Ah, I haven't started looking into the implementations, so I didn't realise these were different things

glasnt avatar Oct 24 '22 21:10 glasnt