Skip to content

Commit

Permalink
Add more helpful messages to lando.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainweb committed Jun 13, 2020
1 parent 1d2ff84 commit d2ae2d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions axltempl/lando.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ def generate_lando_files(name, docroot, cache):
yml = yml.replace("{tooling}", tooling)
util.write_file(".lando.yml", yml)

if not os.path.isdir(".lando"):
os.mkdir(".lando")
os.makedirs(".lando", mode=0o755, exist_ok=True)
util.copy_package_file("files/lando/php.ini", ".lando/php.ini")

# Generate lando development override configuration.
Expand Down Expand Up @@ -99,4 +98,9 @@ def generate_lando_files(name, docroot, cache):
settings_file, "include $app_root . '/' . $site_path . '/settings.lando.php';"
)

util.write_info("Successfully created Lando configuration files.")
util.write_important(
"Change the database image from mariadb to your desired image in .lando.yml."
)

return 0

0 comments on commit d2ae2d7

Please sign in to comment.