pulumi-django-azure 1.0.29__tar.gz → 1.0.30__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-django-azure might be problematic. Click here for more details.

Files changed (17) hide show
  1. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/PKG-INFO +1 -36
  2. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/README.md +0 -35
  3. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/pyproject.toml +2 -2
  4. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure/django_deployment.py +4 -1
  5. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure.egg-info/PKG-INFO +1 -36
  6. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/setup.cfg +0 -0
  7. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure/__init__.py +0 -0
  8. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure/azure_helper.py +0 -0
  9. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure/management/commands/__init__.py +0 -0
  10. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure/management/commands/purge_cache.py +0 -0
  11. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure/management/commands/purge_cdn.py +0 -0
  12. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure/middleware.py +0 -0
  13. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure/settings.py +0 -0
  14. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure.egg-info/SOURCES.txt +0 -0
  15. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure.egg-info/dependency_links.txt +0 -0
  16. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure.egg-info/requires.txt +0 -0
  17. {pulumi_django_azure-1.0.29 → pulumi_django_azure-1.0.30}/src/pulumi_django_azure.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi-django-azure
3
- Version: 1.0.29
3
+ Version: 1.0.30
4
4
  Summary: Simply deployment of Django on Azure with Pulumi
5
5
  Author-email: Maarten Ureel <maarten@youreal.eu>
6
6
  License-Expression: MIT
@@ -38,41 +38,6 @@ To have a proper and secure environment, we need these components:
38
38
  * Webapp running pgAdmin
39
39
 
40
40
  ## Project requirements
41
- Your Django project should contain a folder `cicd` with these files:
42
- * pre_build.sh: commands to be executed before building the application, for example NPM install, CSS build commands,...
43
- * post_build.sh: commands to be executed after building the application, e.g. cleaning up.
44
- Note that this runs in the identity of the build container, so you should not run database or storage manipulations here.
45
- * startup.sh: commands to run the actual application. I recommend to put at least:
46
- ```bash
47
- # Compile translations
48
- apt-get -y install gettext
49
- python manage.py compilemessages
50
-
51
- # Run collectstatic in the background
52
- sh cicd/collectstatic.sh &
53
-
54
- python manage.py migrate
55
- gunicorn --timeout 600 --workers $((($NUM_CORES*2)+1)) --preload --chdir $APP_PATH yourapplication.wsgi --access-logfile '-' --error-logfile '-'
56
- ```
57
-
58
- Be sure to change `yourapplication` in the above.
59
-
60
- * collecstatic.sh
61
- ```bash
62
- #!/bin/bash
63
-
64
- LOGFILE="/var/log/django_collectstatic.log"
65
-
66
- # Collectstatic
67
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting collectstatic" >> $LOGFILE
68
- python manage.py collectstatic --noinput -v 2 >> $LOGFILE
69
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Finished collectstatic" >> $LOGFILE
70
-
71
- # Purge the CDN
72
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting purge_cdn" >> $LOGFILE
73
- python manage.py purge_cdn >> $LOGFILE
74
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Finished purge_cdn" >> $LOGFILE
75
- ```
76
41
 
77
42
  ## Installation
78
43
  This package is published on PyPi, so you can just add pulumi-django-azure to your requirements file.
@@ -12,41 +12,6 @@ To have a proper and secure environment, we need these components:
12
12
  * Webapp running pgAdmin
13
13
 
14
14
  ## Project requirements
15
- Your Django project should contain a folder `cicd` with these files:
16
- * pre_build.sh: commands to be executed before building the application, for example NPM install, CSS build commands,...
17
- * post_build.sh: commands to be executed after building the application, e.g. cleaning up.
18
- Note that this runs in the identity of the build container, so you should not run database or storage manipulations here.
19
- * startup.sh: commands to run the actual application. I recommend to put at least:
20
- ```bash
21
- # Compile translations
22
- apt-get -y install gettext
23
- python manage.py compilemessages
24
-
25
- # Run collectstatic in the background
26
- sh cicd/collectstatic.sh &
27
-
28
- python manage.py migrate
29
- gunicorn --timeout 600 --workers $((($NUM_CORES*2)+1)) --preload --chdir $APP_PATH yourapplication.wsgi --access-logfile '-' --error-logfile '-'
30
- ```
31
-
32
- Be sure to change `yourapplication` in the above.
33
-
34
- * collecstatic.sh
35
- ```bash
36
- #!/bin/bash
37
-
38
- LOGFILE="/var/log/django_collectstatic.log"
39
-
40
- # Collectstatic
41
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting collectstatic" >> $LOGFILE
42
- python manage.py collectstatic --noinput -v 2 >> $LOGFILE
43
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Finished collectstatic" >> $LOGFILE
44
-
45
- # Purge the CDN
46
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting purge_cdn" >> $LOGFILE
47
- python manage.py purge_cdn >> $LOGFILE
48
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Finished purge_cdn" >> $LOGFILE
49
- ```
50
15
 
51
16
  ## Installation
52
17
  This package is published on PyPi, so you can just add pulumi-django-azure to your requirements file.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pulumi-django-azure"
7
- version = "1.0.29"
7
+ version = "1.0.30"
8
8
  description = "Simply deployment of Django on Azure with Pulumi"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Maarten Ureel", email = "maarten@youreal.eu" }]
@@ -36,7 +36,7 @@ Homepage = "https://gitlab.com/MaartenUreel/pulumi-django-azure"
36
36
 
37
37
  [tool.poetry]
38
38
  name = "pulumi-django-azure"
39
- version = "1.0.29"
39
+ version = "1.0.30"
40
40
  description = "Simplify deployment of Django websites on Azure with Pulumi"
41
41
  authors = ["Maarten Ureel <maarten@youreal.eu>"]
42
42
 
@@ -297,7 +297,10 @@ class DjangoDeployment(pulumi.ComponentResource):
297
297
  active_directory_auth=azure.dbforpostgresql.ActiveDirectoryAuthEnum.ENABLED,
298
298
  tenant_id=self._tenant_id,
299
299
  ),
300
- storage=azure.dbforpostgresql.StorageArgs(storage_size_gb=32),
300
+ storage=azure.dbforpostgresql.StorageArgs(
301
+ storage_size_gb=32,
302
+ auto_grow=azure.dbforpostgresql.StorageAutoGrow.ENABLED,
303
+ ),
301
304
  network=azure.dbforpostgresql.NetworkArgs(
302
305
  delegated_subnet_resource_id=subnet.id,
303
306
  private_dns_zone_arm_resource_id=dns.id,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi-django-azure
3
- Version: 1.0.29
3
+ Version: 1.0.30
4
4
  Summary: Simply deployment of Django on Azure with Pulumi
5
5
  Author-email: Maarten Ureel <maarten@youreal.eu>
6
6
  License-Expression: MIT
@@ -38,41 +38,6 @@ To have a proper and secure environment, we need these components:
38
38
  * Webapp running pgAdmin
39
39
 
40
40
  ## Project requirements
41
- Your Django project should contain a folder `cicd` with these files:
42
- * pre_build.sh: commands to be executed before building the application, for example NPM install, CSS build commands,...
43
- * post_build.sh: commands to be executed after building the application, e.g. cleaning up.
44
- Note that this runs in the identity of the build container, so you should not run database or storage manipulations here.
45
- * startup.sh: commands to run the actual application. I recommend to put at least:
46
- ```bash
47
- # Compile translations
48
- apt-get -y install gettext
49
- python manage.py compilemessages
50
-
51
- # Run collectstatic in the background
52
- sh cicd/collectstatic.sh &
53
-
54
- python manage.py migrate
55
- gunicorn --timeout 600 --workers $((($NUM_CORES*2)+1)) --preload --chdir $APP_PATH yourapplication.wsgi --access-logfile '-' --error-logfile '-'
56
- ```
57
-
58
- Be sure to change `yourapplication` in the above.
59
-
60
- * collecstatic.sh
61
- ```bash
62
- #!/bin/bash
63
-
64
- LOGFILE="/var/log/django_collectstatic.log"
65
-
66
- # Collectstatic
67
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting collectstatic" >> $LOGFILE
68
- python manage.py collectstatic --noinput -v 2 >> $LOGFILE
69
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Finished collectstatic" >> $LOGFILE
70
-
71
- # Purge the CDN
72
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Starting purge_cdn" >> $LOGFILE
73
- python manage.py purge_cdn >> $LOGFILE
74
- echo "$(date '+%Y-%m-%d %H:%M:%S') - Finished purge_cdn" >> $LOGFILE
75
- ```
76
41
 
77
42
  ## Installation
78
43
  This package is published on PyPi, so you can just add pulumi-django-azure to your requirements file.