Closed johnwbaxter closed 2 years ago
I was about to ask if there was a way to pause (or stop) individual sites. I have several sites setup and they're always running. I'm not likely to work on all the sites all the time, but don't want to remove a site once finished with only to go through re-creating it if I need to come back to it.
I guess manually stopping them in Docker is a temporary solution?
@jamiematrix You can start and stop individual sites using NItro!
nitro start blah.loc
nitro stop blah.loc
@johnwbaxter yeh, I know.
I was, erm, just, er ... causing trouble? Oh look! Sunshine!
quick, shall I delete or hide my first comment!?
Agreed! I like to keep only one project running at a time. Rarely do I want to start up two dozen existing sites, just because I've added a (completely unrelated) new one.
This mentality aligns with #284, which I would also love to see implemented.
100% - my system is out of resources and spinning up 28 containers when I only need 4 or 5 is a surefire way to watch my MySQL container just suddenly STOP being there. I have an M1... I can not add more RAM.
Hi all, we are adding support for this in 3.0 with the nitro ensite
and nitro dissite
commands. This will add a new option on the site for us to determine if we should start the site or not.
Hi, we are closing this issue as we have decided to retire Nitro, so no additional work will occur on this project. You can read the official blog post here https://craftcms.com/blog/retiring-craft-nitro. We appreciate everyones feedback and involvement and we look forward to refocusing our efforts on Cloud!
If you're looking for a new local development environment, we recommend DDEV and have a knowledge base article to help you with the transition: https://craftcms.com/knowledge-base/migrating-from-craft-nitro-to-ddev.
When I add a new site using
nitro add
, it goes through the add site process and then starts up all the sites.The command and output is here:
nitro add Adding site… Enter the hostname [deploy.nitro]: example.loc ✓ setting hostname to example.loc ✓ adding site ~/sites/example/deploy Enter the web root for the site [public_html]: ✓ using web root public_html Choose a PHP version:
I'd really like it to not start all my sites when i add a new one!!