Giter Site home page Giter Site logo

platformsh / platformsh-docs Goto Github PK

View Code? Open in Web Editor NEW
101.0 36.0 324.0 101.96 MB

Platform.sh documentation. Templates available at https://github.com/platformsh-templates/

Home Page: https://docs.platform.sh/

License: Creative Commons Attribution Share Alike 4.0 International

Shell 6.62% Python 7.32% JavaScript 29.17% HTML 54.11% CSS 2.78%
docs

platformsh-docs's Issues

Add a glossary of terms

I recall seeing a sentence somewhere in the platform.sh docs which said something like "If the project has a project file then the project will be built in project mode", which was very confusing.

Project seems to be used as a verb and an adjective, and in any case it's a standard English word which has broader meanings outside of platform.sh

If we had a glossary, project, project file, project mode could have their own entries.

document_root implications

I was recently talking to support about why an application gets deployed into /app or sometimes /app/public

This is actually controlled by the document_root setting in the .platform.app.yaml. If the document_root is set to /, it will move the application to /app/public and use that as the root to allow for the private mounts to be kept private. In the case of your stats-tracking project it's doing this because there is no .platform.app.yaml so it is using the defaults.

Best,
Brad

This information should be added to: https://docs.platform.sh/user_guide/reference/platform-app-yaml.html

Multi app config + git submodules

When testing git submodules with a multi application setup as described here I had several issues which were not easy to debug.
When I removed the git structure with submodules and commited all files to the main directory instead of submodules it was possible to push the application.

Maybe this is a bug or git submodules do not work with multi apps.
It is also possible that I did some configs wrong which would be odd since it works with the same configs when not using submodules.

The error:

Validating configuration files.
E: Error parsing configuration files:
   - http://docs.{default}/: Upstream 'docs:php' of route 'http://docs.{default}/' doesn't exist.
To [email protected]:63nps64z7mely.git

integration:set command does not return the Payload URL

on
https://github.com/platformsh/platformsh-docs/blob/blackfire/integration/webhooks.rst
we say "This command returns the Payload URL that you need to paste on your Github repository".
Current output:

platform integration:set --type=github --token=c84258....aa8e34 --repository=OriPekelman/apidays-2014-git-as-hypermedia
Integration mprqvhu5q756y created for github
Repository: OriPekelman/apidays-2014-git-as-hypermedia
Build PRs: yes
Fetch branches: yes

may be a CLI issue

Document how to work with multilingual sites

Since each language has its specific URL on its specific subdomain, which is stored in the database, if you change the environment (branching or merging), you'll break URLs on that environment.

To bypass that, you can create a custom Drush command which you run in your post-deploy hook. This command could override the domain of each language to match:

  • [LANGUAGE_CODE]-[PLATFORM_ENVIRONMENT]-[PLATFORM_PROJECT].[CLUSTER].platform.sh

Clarify how to contribute

The section in the README about conributing to the documentation doesn't make sense.

  • It talks about Symfony documentation
  • The link "Contributing to the Documentation" just leads to docs.platform.sh, and I can't find anything there about contributing.

Document how to work with multiple apps

Each app has its own name defined into .platform.app.yaml

name: phpsymfony
name: phpdrupal

Define the routes

In .platform/routes.yaml you define the upstream which will serve your app:

"http://{default}/symfony":
    type: upstream
    upstream: "phpsymfony:php"

"http://{default}/":
    type: upstream
    upstream: « phpdrupal:php"

Redis setup missing some details

A few issues in one:

If i get it right, the redis server must also be enabled in .platform/services.yml

on https://docs.platform.sh/user_guide/reference/toolstacks/php/drupal/redis-drupal-7.html
in the settings.php section it's not totally clear how this works:
Currently there's one line before the settings.local include setting which connector to use,
And then some more lines after the include. Amongst it one about the connector too, but it does not say to adjust there to the used connector, which i think i should.

Can't i just as well put that code in settings.local.php to use redis eg. in production only?
The article only promotes using environment variables for that.

Also, the drupal-6 version tells how to check if redis is running, the D7 version is missing that.

Improve and Update Drupal Migration Docs

Hi,

I'm just going through the process of importing an existing Drupal site into platform and I think the the docs are a bit out of date:

Page Order

Since July 2016 you can't actually push your code to platform without having the configuration files already created and committed to the repo. However, this step in the tutorial comes before the configuration step which is going to be confusing for users following step-by-step (like me).

Additionally the image in the "Import your codebase" step does not quite match what I'm seeing. This isn't that big a deal but it did lead me to consider that maybe the documentation was out of date.

The "Public" or "Web" subdirectory

Initially reading through the docs (the drupal tutorial and the main docs), I was confused by various references to a "public" directory. As it turns out I think platform used to automatically move the application files into a public subdirectory, but that changed sometime earlier this year.

However, it's still required that your code be in a subdirectory which isn't actually mentioned in the "import your codebase" step. I think it should be mentioned earlier in the docs (maybe even as a prerequisite?) that your Drupal code cannot be at the root of the repository as many people's existing codebases may not be setup this way.

Thanks!

Improve and update Drush documentation

  • You can sql-sync if you have Drush >= 7 locally and on Platform.sh, but it requires one extra step, e.g.: pjcdawkins/platformsh-examples@950f7cd
  • Drush 7.0.0-rc2 and 8 (beta) support Drupal 8. Drush <7 and Drush 7.0.0 do not support Drupal 8. Any version (above 5) supports Drupal 7. But you must have the same Drush version on both local and remote environments.
  • If you want to use YAML make files you will need to install Drush >=7.

Collapsible table of contents is hard to discover due to low contrast icon.

Developers over the age of 40 (or so) need to be able to read the user guide ;-)

The burger button in the top-left is coloured #ccc on a white background, so it's hard to know that a table of contents is available. Additionally it has a low-contrast focus outline (also #ccc).

Can we darken this to at least #757575 so it passes WCAG AA contrast requirements?

cron running on dash shell

l just found out that a command that worked fine on platform ssh was not working on cron, by looking at cron.log I found out that it was run on dash, so I fixed it accordingly.

This should be documented probably on the cron section, that is run with dash and that you can use that shell within the container to try it out.

Consider making this a Wiki

Given how often the docs change and how the docs have proliferated over the past few months, it would really make sense to put the docs in an environment that encouraged and made changes easier instead of harder.

So, please, let's put the docs in a Wiki. This would make contributions easier by not requiring knowledge of Git.

PHP: mcrypt included by default or not?

Looking at https://docs.platform.sh/languages/php.html, it's indicated that mcrypt is "enabled by default". However, when tinkering with Platform.sh I found that I had to specify it explicitly (was using PHP 7.0) or I got an error when Composer ran about mcrypt not being available.

I'd be happy to correct the docs via a PR, but I'm not sure whether this is a bug in the platform or the docs.

Relevant tidbits:

          - cakephp/cakephp 2.8.6 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.

        To enable extensions, verify that they are enabled in those .ini files:
          - /etc/php/7.0/cli/php.ini
        You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Fixed by adding the following to .platform.app.yaml

runtime:
    extensions:
        - mcrypt

shell-config.rc breaks Linux GUI login

Problem

After installing Platform CLI the user cannot login using the Linux GUI login screen. The X-server crash and return to the login screen.

Switching to a different tty and running startx works as a workaround.

Commenting the .profile lines that are added by the installation script allows the user to login on the Linux GUI again.

System which the problem was detected:

Linux distribution: Linux Mint Debian Edition
zsh is also installed, but I'm not sure if this is relevant to the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.