· 4 years ago · Jan 10, 2021, 01:32 AM
1(local venv) $ heroku addons
2
3Add-on Plan Price State
4────────────────────────────────────── ───────── ───── ───────
5heroku-postgresql (postgresql-lorem-1) hobby-dev free created
6 └─ as DATABASE
7
8heroku-postgresql (postgresql-real-1) hobby-dev free created
9 └─ as HEROKU_POSTGRESQL_NAVY
10
11logentries (logentries-deep-90782) le_tryit free created
12 └─ as LOGENTRIES
13
14The 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
17Ensuring an alternate alias for existing DATABASE_URL... HEROKU_POSTGRESQL_SILVER_URL
18Promoting postgresql-real-1 to DATABASE_URL on ⬢ tarot-juicer-next-iter... done
19
20(local venv) $ heroku run python manage.py migrate
21Running python manage.py migrate on ⬢ tarot-juicer-next-iter... up, run.6999 (Hobby)
22Operations to perform:
23 Apply all migrations: accounts, admin, auth, contenttypes, sessions
24Running 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
47Running python manage.py makemigrations on ⬢ tarot-juicer-next-iter... up, run.3203 (Hobby)
48No changes detected
49
50(local venv) $ heroku run python manage.py createsuperuser
51Running python manage.py createsuperuser on ⬢ tarot-juicer-next-iter... up, run.7114 (Hobby)
52Username (leave blank to use 'u57322'): realtom
53Email address:
54Password:
55Password (again):
56Superuser 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
59System check identified no issues (0 silenced).
60
61----------------------------------------------------------------------
62Ran 0 tests in 0.000s
63
64OK
65
66(local venv) $ heroku addons:open HEROKU_POSTGRESQL_NAVY
67Opening 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>'
71Setting SECRET_KEY and restarting ⬢ tarot-juicer-next-iter... done, v44
72SECRET_KEY: <hash redacted>
73
74(local venv) $ heroku config:set AUTHENTICATED_VISITOR_USERNAME='authenticated_visitor'
75Setting AUTHENTICATED_VISITOR_USERNAME and restarting ⬢ tarot-juicer-next-iter... done, v44
76AUTHENTICATED_VISITOR_USERNAME: authenticated_visitor
77
78(local venv) $ heroku config:set AUTHENTICATED_VISITOR_PASSWORD='AjeuAjs2@#7sg'
79Setting AUTHENTICATED_VISITOR_PASSWORD and restarting ⬢ tarot-juicer-next-iter... done, v44
80AUTHENTICATED_VISITOR_PASSWORD: hash redacted
81
82(local venv) $ heroku config:set PASSPHRASE='YourMagicPassphrase'
83Setting PASSPHRASE and restarting ⬢ tarot-juicer-next-iter... done, v44
84PASSPHRASE: YourMagicPassphrase
85
86(local venv) $ heroku ps:exec
87Establishing credentials... done
88Connecting to web.1 on ⬢ tarot-juicer-next-iter...
89
90(remote) ~ $ python manage.py migrate
91Operations to perform:
92 Apply all migrations: accounts, admin, auth, contenttypes, sessions
93Running 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
116No changes detected
117
118(remote) ~