Advertisement
Guest User

Untitled

a guest
Jan 9th, 2021
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.36 KB | None | 0 0
  1. (local venv) $ heroku addons                                                
  2.  
  3. Add-on                                  Plan       Price  State  
  4. ──────────────────────────────────────  ─────────  ─────  ───────
  5. heroku-postgresql (postgresql-lorem-1)  hobby-dev  free   created
  6.  └─ as DATABASE
  7.  
  8. heroku-postgresql (postgresql-real-1)   hobby-dev  free   created
  9.  └─ as HEROKU_POSTGRESQL_NAVY
  10.  
  11. logentries (logentries-deep-90782)      le_tryit   free   created
  12.  └─ as LOGENTRIES
  13.  
  14. The table above shows add-ons and the attachments to the current app (tarot-juicer-next-iter) or other apps.
  15.  
  16. (local venv)$ heroku pg:promote HEROKU_POSTGRESQL_NAVY
  17. Ensuring an alternate alias for existing DATABASE_URL... HEROKU_POSTGRESQL_SILVER_URL
  18. Promoting postgresql-real-1 to DATABASE_URL on ⬢ tarot-juicer-next-iter... done
  19.  
  20. (local venv) $ heroku run python manage.py migrate
  21. Running python manage.py migrate on ⬢ tarot-juicer-next-iter... up, run.6999 (Hobby)
  22. Operations to perform:
  23.   Apply all migrations: accounts, admin, auth, contenttypes, sessions
  24. Running migrations:
  25.   Applying accounts.0001_initial... OK
  26.   Applying accounts.0002_passphrase... OK
  27.   Applying accounts.0003_auto_20201203_1609... OK
  28.   Applying contenttypes.0001_initial... OK
  29.   Applying auth.0001_initial... OK
  30.   Applying admin.0001_initial... OK
  31.   Applying admin.0002_logentry_remove_auto_add... OK
  32.   Applying admin.0003_logentry_add_action_flag_choices... OK
  33.   Applying contenttypes.0002_remove_content_type_name... OK
  34.   Applying auth.0002_alter_permission_name_max_length... OK
  35.   Applying auth.0003_alter_user_email_max_length... OK
  36.   Applying auth.0004_alter_user_username_opts... OK
  37.   Applying auth.0005_alter_user_last_login_null... OK
  38.   Applying auth.0006_require_contenttypes_0002... OK
  39.   Applying auth.0007_alter_validators_add_error_messages... OK
  40.   Applying auth.0008_alter_user_username_max_length... OK
  41.   Applying auth.0009_alter_user_last_name_max_length... OK
  42.   Applying auth.0010_alter_group_name_max_length... OK
  43.   Applying auth.0011_update_proxy_permissions... OK
  44.   Applying sessions.0001_initial... OK
  45.  
  46. (local venv) $ heroku run python manage.py makemigrations
  47. Running python manage.py makemigrations on ⬢ tarot-juicer-next-iter... up, run.3203 (Hobby)
  48. No changes detected
  49.  
  50. (local venv) $ heroku run python manage.py createsuperuser
  51. Running python manage.py createsuperuser on ⬢ tarot-juicer-next-iter... up, run.7114 (Hobby)
  52. Username (leave blank to use 'u57322'): realtom
  53. Email address:
  54. Password:
  55. Password (again):
  56. Superuser created successfully.
  57.  
  58. (local venv) $ DATABASE_URL="postgres://jckmeibmxypuvn:11033b956dd9cc6011e8efb7d23d56bb277bef7e9634a31ae0f0b304f34e9667@ec2-3-231-241-17.compute-1.amazonaws.com:5432/d9eds0cfpna1li" python manage.py test --keepdb
  59. System check identified no issues (0 silenced).
  60.  
  61. ----------------------------------------------------------------------
  62. Ran 0 tests in 0.000s
  63.  
  64. OK
  65.  
  66. (local venv) $ heroku addons:open HEROKU_POSTGRESQL_NAVY
  67. Opening https://addons-sso.heroku.com/apps/d96f2568-66a5-41f4-9293-b1a886ef6133/addons/93677e68-cec5-43f3-9ce8-4bdd3087d88b...
  68.  
  69.  
  70. (local venv) $ heroku config:set SECRET_KEY='<hash redacted>'
  71. Setting SECRET_KEY and restarting ⬢ tarot-juicer-next-iter... done, v44
  72. SECRET_KEY: <hash redacted>
  73.  
  74. (local venv) $ heroku config:set AUTHENTICATED_VISITOR_USERNAME='authenticated_visitor'
  75. Setting AUTHENTICATED_VISITOR_USERNAME and restarting ⬢ tarot-juicer-next-iter... done, v44
  76. AUTHENTICATED_VISITOR_USERNAME: authenticated_visitor
  77.  
  78. (local venv) $ heroku config:set AUTHENTICATED_VISITOR_PASSWORD='AjeuAjs2@#7sg'
  79. Setting AUTHENTICATED_VISITOR_PASSWORD and restarting ⬢ tarot-juicer-next-iter... done, v44
  80. AUTHENTICATED_VISITOR_PASSWORD: hash redacted
  81.  
  82. (local venv) $ heroku config:set PASSPHRASE='YourMagicPassphrase'
  83. Setting PASSPHRASE and restarting ⬢ tarot-juicer-next-iter... done, v44
  84. PASSPHRASE: YourMagicPassphrase
  85.  
  86. (local venv) $ heroku ps:exec
  87. Establishing credentials... done
  88. Connecting to web.1 on ⬢ tarot-juicer-next-iter...
  89.  
  90. (remote) ~ $ python manage.py migrate
  91. Operations to perform:
  92.   Apply all migrations: accounts, admin, auth, contenttypes, sessions
  93. Running migrations:
  94.   Applying accounts.0001_initial... OK
  95.   Applying accounts.0002_passphrase... OK
  96.   Applying accounts.0003_auto_20201203_1609... OK
  97.   Applying contenttypes.0001_initial... OK
  98.   Applying auth.0001_initial... OK
  99.   Applying admin.0001_initial... OK
  100.   Applying admin.0002_logentry_remove_auto_add... OK
  101.   Applying admin.0003_logentry_add_action_flag_choices... OK
  102.   Applying contenttypes.0002_remove_content_type_name... OK
  103.   Applying auth.0002_alter_permission_name_max_length... OK
  104.   Applying auth.0003_alter_user_email_max_length... OK
  105.   Applying auth.0004_alter_user_username_opts... OK
  106.   Applying auth.0005_alter_user_last_login_null... OK
  107.   Applying auth.0006_require_contenttypes_0002... OK
  108.   Applying auth.0007_alter_validators_add_error_messages... OK
  109.   Applying auth.0008_alter_user_username_max_length... OK
  110.   Applying auth.0009_alter_user_last_name_max_length... OK
  111.   Applying auth.0010_alter_group_name_max_length... OK
  112.   Applying auth.0011_update_proxy_permissions... OK
  113.   Applying sessions.0001_initial... OK
  114.  
  115. (remote) ~ python manage.py makemigrations
  116. No changes detected
  117.  
  118. (remote) ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement