Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Updates to Platform.sh deploy instructions#8397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -39,23 +39,25 @@ Platform.sh how to deploy your application (read more about | ||
| name: myphpproject | ||
| # The type of the application to build. | ||
| type: php:7.1 | ||
| build: | ||
| flavor:composer | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. why do you change this? Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I read somewhere that Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. good to know, thank you@javiereguiluz 👍 | ||
| # The relationships of the application with services or other applications. | ||
| # The left-hand side is the name of the relationship as it will be exposed | ||
| # to the application in the PLATFORM_RELATIONSHIPS variable. The right-hand | ||
| # side is in the form `<service name>:<endpoint name>`. | ||
| relationships: | ||
| database: 'mydatabase:mysql' | ||
| # The configuration of app when it is exposed to the web. | ||
| web: | ||
| locations: | ||
| '/': | ||
| # The public directory of the app, relative to its root. | ||
| root: 'web' | ||
| # The front-controller script to send non-static requests to. | ||
| passthru: '/app.php' | ||
| # The size of the persistent disk of the application (in MB). | ||
| disk: 2048 | ||
| @@ -73,21 +75,21 @@ Platform.sh how to deploy your application (read more about | ||
| deploy: | | ||
| bin/console --env=prod cache:clear | ||
| Youalso need add a ``.platform`` folder at the root of | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. to add | ||
| your Git repository which contains the following files: | ||
| .. code-block:: yaml | ||
| # .platform/routes.yaml | ||
| 'https://{default}/': | ||
| type: upstream | ||
| # the first part should be your project name | ||
| upstream: 'myphpproject:http' | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. should be: 'https://{default}/':type:upstreamupstream:"myphpproject:http"'https://www.{default}/':type:redirectto:"https://{default}/" | ||
| .. code-block:: yaml | ||
| # .platform/services.yaml | ||
| mydatabase: | ||
| type: mysql | ||
| disk: 2048 | ||
| @@ -155,7 +157,7 @@ Commit the Platform.sh specific files created in the previous section: | ||
| .. code-block:: terminal | ||
| $ git add .platform.app.yaml .platform/*.yaml | ||
| $ git add app/config/config.yml app/config/parameters_platform.php | ||
| $ git commit -m "Adding Platform.sh configuration files." | ||