pulumi-django-azure 1.0.9__tar.gz → 1.0.10__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-django-azure
3
- Version: 1.0.9
3
+ Version: 1.0.10
4
4
  Summary: Simply deployment of Django on Azure with Pulumi
5
5
  Author-email: Maarten Ureel <maarten@youreal.eu>
6
6
  License: MIT License
@@ -50,6 +50,18 @@ To have a proper and secure environment, we need these components:
50
50
  * Azure Key Vault per application
51
51
  * Webapp running pgAdmin
52
52
 
53
+ ## Project requirements
54
+ Your Django project should contain a folder `cicd` with these files:
55
+ * pre_build.sh: commands to be executed before building the application, for example NPM install, CSS build commands,...
56
+ * post_build.sh: commands to be executed after building the application, e.g. cleaning up.
57
+ Note that this runs in the identity of the build container, so you should not run database or storage manipulations here.
58
+ * startup.sh: commands to run the actual application. I recommend to put at least:
59
+ ```bash
60
+ python manage.py migrate
61
+ python manage.py collectstatic --noinput
62
+ gunicorn --timeout 600 --workers $((($NUM_CORES*2)+1)) --chdir $APP_PATH yourapplication.wsgi --access-logfile '-' --error-logfile '-'
63
+ ```
64
+ Be sure to change `yourapplication` in the above.
53
65
  ## Installation
54
66
  This package is published on PyPi, so you can just add pulumi-django-azure to your requirements file.
55
67
 
@@ -11,6 +11,18 @@ To have a proper and secure environment, we need these components:
11
11
  * Azure Key Vault per application
12
12
  * Webapp running pgAdmin
13
13
 
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
+ python manage.py migrate
22
+ python manage.py collectstatic --noinput
23
+ gunicorn --timeout 600 --workers $((($NUM_CORES*2)+1)) --chdir $APP_PATH yourapplication.wsgi --access-logfile '-' --error-logfile '-'
24
+ ```
25
+ Be sure to change `yourapplication` in the above.
14
26
  ## Installation
15
27
  This package is published on PyPi, so you can just add pulumi-django-azure to your requirements file.
16
28
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pulumi-django-azure"
7
- version = "1.0.9"
7
+ version = "1.0.10"
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" }]
@@ -27,7 +27,7 @@ Homepage = "https://gitlab.com/MaartenUreel/pulumi-django-azure"
27
27
 
28
28
  [tool.poetry]
29
29
  name = "pulumi-django-azure"
30
- version = "1.0.9"
30
+ version = "1.0.10"
31
31
  description = "Simply deployment of Django on Azure with Pulumi"
32
32
  authors = ["Maarten Ureel <maarten@youreal.eu>"]
33
33
 
@@ -577,6 +577,7 @@ class DjangoDeployment(pulumi.ComponentResource):
577
577
  ),
578
578
  https_only=True,
579
579
  site_config=azure.web.SiteConfigArgs(
580
+ app_command_line="cicd/startup.sh",
580
581
  always_on=True,
581
582
  health_check_path=self.HEALTH_CHECK_PATH,
582
583
  ftps_state=azure.web.FtpsState.DISABLED,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-django-azure
3
- Version: 1.0.9
3
+ Version: 1.0.10
4
4
  Summary: Simply deployment of Django on Azure with Pulumi
5
5
  Author-email: Maarten Ureel <maarten@youreal.eu>
6
6
  License: MIT License
@@ -50,6 +50,18 @@ To have a proper and secure environment, we need these components:
50
50
  * Azure Key Vault per application
51
51
  * Webapp running pgAdmin
52
52
 
53
+ ## Project requirements
54
+ Your Django project should contain a folder `cicd` with these files:
55
+ * pre_build.sh: commands to be executed before building the application, for example NPM install, CSS build commands,...
56
+ * post_build.sh: commands to be executed after building the application, e.g. cleaning up.
57
+ Note that this runs in the identity of the build container, so you should not run database or storage manipulations here.
58
+ * startup.sh: commands to run the actual application. I recommend to put at least:
59
+ ```bash
60
+ python manage.py migrate
61
+ python manage.py collectstatic --noinput
62
+ gunicorn --timeout 600 --workers $((($NUM_CORES*2)+1)) --chdir $APP_PATH yourapplication.wsgi --access-logfile '-' --error-logfile '-'
63
+ ```
64
+ Be sure to change `yourapplication` in the above.
53
65
  ## Installation
54
66
  This package is published on PyPi, so you can just add pulumi-django-azure to your requirements file.
55
67