nanobox icon indicating copy to clipboard operation
nanobox copied to clipboard

Add "start" command

Open mbrodala opened this issue 7 years ago • 2 comments
trafficstars

Usually apps are started via nanobox run <specific-command> where <specific-command> would e.g. be php-server for PHP apps.

I'd like to suggest a generic start command which automatically invokes the default start command of the first web component.

This would allow for starting all basic web apps with the same command without knowing specific details about the startup procedure:

  • Launch a generic PHP web app: nanobox start instead of nanobox run php-server
  • Launch a Rails web app: nanobox start instead of nanobox run rails s
  • ... you get the idea. ;-)

mbrodala avatar Dec 18 '17 12:12 mbrodala

@mbrodala You can work around this with a simple shell script if you want. I created a server-start.sh that runs all I need to create my development environment.

andersondalmina avatar Jan 09 '18 17:01 andersondalmina

Sure but as mentioned this is about a general solution, not some workaround. ;-)

mbrodala avatar Jan 10 '18 08:01 mbrodala