質問編集履歴

4

記載ミス

2021/02/11 13:12

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -26,11 +26,27 @@
26
26
 
27
27
  ```
28
28
 
29
- $ heroku run FLASK_APP=run.py flask db migrate
29
+ (server) bash-3.2$ heroku run FLASK_APP=run.py flask db migrate
30
30
 
31
- Running FLASK_APP=run.py flask db migrate on ⬢ image-uploader-ar... up, run.2636 (Free)
31
+ Running FLASK_APP=run.py flask db migrate on ⬢ image-uploader-ar... up, run.5646 (Free)
32
32
 
33
33
  bash: flask: command not found
34
+
35
+ (server) bash-3.2$ python
36
+
37
+ Python 3.8.3 (default, Jul 2 2020, 11:26:31)
38
+
39
+ [Clang 10.0.0 ] :: Anaconda, Inc. on darwin
40
+
41
+ Type "help", "copyright", "credits" or "license" for more information.
42
+
43
+ >>> import flask
44
+
45
+ >>> exit
46
+
47
+ Use exit() or Ctrl-D (i.e. EOF) to exit
48
+
49
+ >>> exit()
34
50
 
35
51
  ```
36
52
 

3

記載ミス

2021/02/11 13:12

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -64,11 +64,7 @@
64
64
 
65
65
  $ heroku local
66
66
 
67
- 3:54:37 PM web.1 | /bin/sh: gunicorn: command not found
67
+ 9:23:54 PM web.1 | sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError) (1146, "Table 'heroku_hoge.images' doesn't exist")
68
-
69
- [DONE] Killing all processes with signal SIGINT
70
-
71
- 3:54:37 PM web.1 Exited with exit code null
72
68
 
73
69
  ```
74
70
 

2

修正

2021/02/11 12:33

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -71,3 +71,37 @@
71
71
  3:54:37 PM web.1 Exited with exit code null
72
72
 
73
73
  ```
74
+
75
+
76
+
77
+ tree
78
+
79
+
80
+
81
+ ```
82
+
83
+ $ tree -L 1
84
+
85
+ .
86
+
87
+ ├── Procfile
88
+
89
+ ├── build
90
+
91
+ ├── migrations
92
+
93
+ ├── requirements.txt
94
+
95
+ ├── run.py
96
+
97
+ ├── runtime.txt
98
+
99
+ ├── server
100
+
101
+ ├── serviceAccountKey.json
102
+
103
+ ├── setup.sh
104
+
105
+ └── uploads
106
+
107
+ ```

1

修正

2021/02/11 07:10

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -49,3 +49,25 @@
49
49
  flask==1.1.2
50
50
 
51
51
  ```
52
+
53
+
54
+
55
+ ### 試したこと
56
+
57
+
58
+
59
+ heroku login実行時
60
+
61
+
62
+
63
+ ```
64
+
65
+ $ heroku local
66
+
67
+ 3:54:37 PM web.1 | /bin/sh: gunicorn: command not found
68
+
69
+ [DONE] Killing all processes with signal SIGINT
70
+
71
+ 3:54:37 PM web.1 Exited with exit code null
72
+
73
+ ```