Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-58

Easy start, stop, and logging of Magnolia


    • Icon: Story Story
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0
    • None
    • None
    • Yes
    • Yes
    • Basel 80, Basel 81
    • 5

      Its clunky to start and stop the magnolia server. mgnl makes it easy to download and install, but starting the server is a more complicated step.

      It should be easy to start, stop and log, on windows, osx and linux.
      For example, something like "mgnl start" should start the nearest server in a new terminal window/tab with logging.

      How this is handled exactly must be researched.

      During scrum we briefly discussed the open new tab issue and, since writing a cross-platform solution to it may be far from trivial, we decided to go for a simpler approach and run starting tomcat and tail (the latter if available) as a background process without leaving the current terminal.

      A new sub-command start has been made available. By default it will

      Start up Magnolia and display the logs. Magnolia CLI looks in the current working directory or parent directories for the nearest folder starting with "apache-folder".

      To stop magnolia and tail, one needs to enter CTRL+C which will try to stop Magnolia gracefully with the magnolia_control.* stop script.

        Acceptance criteria

              fgrilli Federico Grilli
              czimmermann Christopher Zimmermann
              0 Vote for this issue
              3 Start watching this issue