+
+class AdminServe:
+ """\
+ Start a simple web server for serving the API.
+
+ This command starts the built-in PHP webserver to serve the website
+ from the current project directory. This webserver is only suitable
+ for testing and develop. Do not use it in production setups!
+
+ By the default, the webserver can be accessed at: http://127.0.0.1:8088
+ """
+
+ @staticmethod
+ def add_args(parser):
+ group = parser.add_argument_group('Server arguments')
+ group.add_argument('--server', default='127.0.0.1:8088',
+ help='The address the server will listen to.')
+
+ @staticmethod
+ def run(args):
+ run_php_server(args.server, args.project_dir / 'website')
+