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:
374374 MigrationsFileSystemId :
375375 Description : EFS File System ID for migrations
376376 Value : {"Ref": "MigrationsFileSystem"}
377+
378+ MigrationsAccessPointId :
379+ Description : EFS Access Point ID for migrations
380+ Value : {"Ref": "MigrationsAccessPoint"}
377381 Export :
378382 Name : {"Fn::Sub": "${AWS::StackName}-MigrationsFileSystemId"}
Original file line number Diff line number Diff line change @@ -39,6 +39,12 @@ while True:
3939 time.sleep(2)
4040END
4141
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+
4248# Run makemigrations first to ensure migration files are created
4349echo " Running makemigrations..."
4450python manage.py makemigrations --noinput
You can’t perform that action at this time.
0 commit comments