-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare Platform.sh configuration files. #5519
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# This file describes an application. You can have multiple applications | ||
# in the same project. | ||
|
||
# The name of this app. Must be unique within a project. | ||
name: symfonydocs | ||
|
||
# The toolstack used to build the application. | ||
type: "php" | ||
|
||
build: | ||
flavor: "composer" | ||
|
||
# The configuration of app when it is exposed to the web. | ||
web: | ||
# The public directory of the app, relative to its root. | ||
document_root: "/_build/html" | ||
index_files: | ||
- index.html | ||
whitelist: | ||
- \.html$ | ||
- \.txt$ | ||
|
||
# CSS and Javascript. | ||
- \.css$ | ||
- \.js$ | ||
- \.hbs$ | ||
|
||
# image/* types. | ||
- \.gif$ | ||
- \.png$ | ||
- \.ico$ | ||
- \.svgz?$ | ||
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 think we can remove |
||
|
||
# fonts types. | ||
- \.ttf$ | ||
- \.eot$ | ||
- \.woff$ | ||
- \.otf$ | ||
|
||
# robots.txt. | ||
- /robots\.txt$ | ||
|
||
# The size of the persistent disk of the application (in MB). | ||
disk: 512 | ||
|
||
# Build time dependencies. | ||
dependencies: | ||
python: | ||
sphinx: ">=1" | ||
|
||
# The hooks that will be performed when the package is deployed. | ||
hooks: | ||
build: | | ||
pip install git+https://github.com/fabpot/sphinx-php.git | ||
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. The Sphinx extension is registered as a Git submodule. Could it simply be reused here? 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. Hum, not actually sure if it's best. |
||
make html |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
http://www.{default}/: | ||
to: http://{default}/ | ||
type: redirect | ||
http://{default}/: | ||
cache: | ||
cookies: | ||
- '*' | ||
default_ttl: 0 | ||
enabled: true | ||
headers: | ||
- Accept | ||
- Accept-Language | ||
ssi: | ||
enabled: false | ||
type: upstream | ||
upstream: symfonydocs:php |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Keeping this file empty to not deploy unused services. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if that matters here, but what about using
python
instead (we don't have any PHP code to execute)?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the only language supported by Platform.sh at the moment. It doesn't actually matter since Sphinx builds a static HTML website.