File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -374,5 +374,9 @@ Outputs:
374
374
MigrationsFileSystemId :
375
375
Description : EFS File System ID for migrations
376
376
Value : {"Ref": "MigrationsFileSystem"}
377
+
378
+ MigrationsAccessPointId :
379
+ Description : EFS Access Point ID for migrations
380
+ Value : {"Ref": "MigrationsAccessPoint"}
377
381
Export :
378
382
Name : {"Fn::Sub": "${AWS::StackName}-MigrationsFileSystemId"}
Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ while True:
39
39
time.sleep(2)
40
40
END
41
41
42
+ # Ensure migrations directory exists with proper permissions
43
+ echo " Ensuring migrations directory exists..."
44
+ mkdir -p /code/api/migrations
45
+ chmod -R 777 /code/api/migrations
46
+ touch /code/api/migrations/__init__.py
47
+
42
48
# Run makemigrations first to ensure migration files are created
43
49
echo " Running makemigrations..."
44
50
python manage.py makemigrations --noinput
You can’t perform that action at this time.
0 commit comments