質問するログイン新規登録

質問編集履歴

1

空欄が残っていたので一つ削除しましたがまだエラーが発生してしまいます

2021/11/02 08:10

投稿

urabele
urabele

スコア15

title CHANGED
File without changes
body CHANGED
@@ -7,16 +7,17 @@
7
7
  ```
8
8
  エラーメッセージ
9
9
 
10
- The configuration file .ebextensions/db-migrate.config in application version app-211102_165258 contains invalid YAML or JSON. YAML exception: Invalid Yaml: while parsing a block mapping
10
+ ERROR The configuration file .ebextensions/db-migrate.config in application version app-211102_170724 contains invalid YAML or JSON. YAML exception: Invalid Yaml: while parsing a block mapping
11
11
  in "<reader>", line 7, column 5:
12
- command: 'echo \'from django.con ...
12
+ command: 'echo\'from django.cont ...
13
13
  ^
14
14
  expected <block end>, but found Scalar
15
- in "<reader>", line 7, column 22:
15
+ in "<reader>", line 7, column 21:
16
- command: 'echo \'from django.contrib.auth.models ...
16
+ command: 'echo\'from django.contrib.auth.models ...
17
- ^
17
+ ^
18
18
  , JSON exception: Invalid JSON: Unexpected character (c) at position 1.. Update the configuration file.
19
- 2021-11-02 07:53:12 ERROR Failed to deploy application.
19
+ 2021-11-02 08:07:45 ERROR Failed to deploy application.
20
+
20
21
  ```
21
22
 
22
23
  ### 該当のソースコード
@@ -29,11 +30,12 @@
29
30
  command: "source /var/app/venv/*/bin/activate && python3 manage.py migrate"
30
31
  leader_only: true
31
32
  02_createsuperuser:
32
- command: 'echo \'from django.contrib.auth.models import User; User.objects.create_superuser('itsuki', 'itsuki.urabe@gmail.com', 'Itsuki01')\" | python manage.py shell
33
+ command: 'echo\'from django.contrib.auth.models import User; User.objects.create_superuser('itsuki', 'itsuki.urabe@gmail.com', 'Itsuki01')\" | python manage.py shell
33
34
  leader_only: true
34
35
  option_settings:
35
36
  aws:elasticbeanstalk:application:environment:
36
37
  DJANGO_SETTINGS_MODULE: portfolio.settings
38
+ ~
37
39
  ```
38
40
 
39
41
  ### 試したこと