Skip to content

Commit

Permalink
Prepend warning text to lando and platformsh templates
Browse files Browse the repository at this point in the history
  • Loading branch information
omahm committed Nov 8, 2022
1 parent dfa798e commit f0eec43
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#
# See https://docs.platform.sh/user_guide/reference/platform-app-yaml.html
#
# NOTE: DO NOT add site specific configuration to this file. The Unity shell
# will populate this file with site config as part of the hosting:build
# command.

# The name of this app. Must be unique within a project.
name: 'unity'
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/Lando.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function build(StyleInterface $io, FilesystemInterface $fs, ProjectInterf

// Create project specific Lando file.
$io->writeln("Creating Lando project configuration file.");
$fs->write('/.lando.yml', $data);
$fs->write('/.lando.yml', $data, TRUE);

// Copy Lando resources to the project.
$io->writeln("Copying Lando resources to project.");
Expand Down
6 changes: 3 additions & 3 deletions src/Provider/PlatformSH.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public function build(StyleInterface $io, FilesystemInterface $fs, ProjectInterf

// Write Platform configuration files.
$io->writeln('Writing platform configuration, services and routes.');
$fs->write('/.platform.app.yaml', $platform);
$fs->write('/.platform/services.yaml', $services);
$fs->write('/.platform/routes.yaml', $routes);
$fs->write('/.platform.app.yaml', $platform, TRUE);
$fs->write('/.platform/services.yaml', $services, TRUE);
$fs->write('/.platform/routes.yaml', $routes, TRUE);

// Copy Solr configuration to platform directory.
$io->writeln('Copying Solr configuration.');
Expand Down

0 comments on commit f0eec43

Please sign in to comment.