Skip to content
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

Ability to Disable Database #19

Open
GuyPaddock opened this issue Feb 10, 2023 · 3 comments
Open

Ability to Disable Database #19

GuyPaddock opened this issue Feb 10, 2023 · 3 comments

Comments

@GuyPaddock
Copy link

GuyPaddock commented Feb 10, 2023

We have a CLI-only (Symfony Console) project but would like to use Lando so that our dev environments are portable and XDEBUG works out of the box.

We don't need any database for this. Unfortunately, it doesn't seem like there's any way to disable the database component of this recipe. Would it be possible for a value like disabled, none, or off to be provided for database?

For clarification, I did try this but got ERROR: No such service: database:

name: my_project
recipe: symfony
services:
  database: disabled
@brandonmcwhirter
Copy link

@GuyPaddock this appears to have been added in 3.6.5 of Lando. I am able to disable the database service using the yaml above with the latest version of Lando (3.11.0).

Scanning to determine which services are ready... Please stand by...

   ___                      __        __        __     __        ______
  / _ )___  ___  __ _  ___ / /  ___ _/ /_____ _/ /__ _/ /_____ _/ / / /
 / _  / _ \/ _ \/  ' \(_-</ _ \/ _ `/  '_/ _ `/ / _ `/  '_/ _ `/_/_/_/
/____/\___/\___/_/_/_/___/_//_/\_,_/_/\_\\_,_/_/\_,_/_/\_\\_,_(_|_|_)


Your app has started up correctly.
Here are some vitals:

 NAME            my_project
 LOCATION        /home/brandon/projects/my_project
 SERVICES        appserver
 APPSERVER URLS  https://localhost:55765
                 http://localhost:55764
                 http://my_project.lndo.site/
                 https://my_project.lndo.site/

@GuyPaddock
Copy link
Author

@brandonmcwhirter I am already running Lando 3.11.0. The disabled option works for initial spin-up, but it causes rebuilds to fail:

$ lando rebuild
? Are you sure you want to rebuild? Yes
Rising anew like a fire phoenix from the ashes! Rebuilding app...
Killing myproject_appserver_1 ... done
Going to remove myproject_appserver_1
Removing myproject_appserver_1 ... done
ERROR: No such service: database
ERROR ==>

@wtflm
Copy link

wtflm commented May 22, 2024

lando rebuild -s appserver -y works to specify appserver only, effectively skipping the problematic database service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants