jets server


jets server [options]


Runs a local server that mimics API Gateway for development

The local server for mimics API Gateway and provides a way to test your app locally without deploying to AWS.


$ jets server
=> bundle exec shotgun --port 8888 --host
Jets booting up in development mode!
== Shotgun/WEBrick on
[2018-08-17 05:31:33] INFO  WEBrick 1.4.2
[2018-08-17 05:31:33] INFO  ruby 2.5.1 (2018-03-29) [x86_64-linux]
[2018-08-17 05:31:33] INFO  WEBrick::HTTPServer#start: pid=27433 port=8888

Start up server binding to host

jets server --host


-e, [--environment=ENVIRONMENT]              # Specifies the environment to run this server under (test/development/production).
-p, [--port=port]                            # Runs Jets on the specified port - defaults to 8888.
-b, [--binding=IP]                           # Binds Jets to the specified IP - defaults to 'localhost' in development and '' in other environments'.
-c, [--config=file]                          # Uses a custom rackup configuration.
                                             # Default:
-d, [--daemon], [--no-daemon]                # Runs server as a Daemon.
                                             # Default: false
-u, [--using=name]                           # Specifies the Rack server used to run the application (thin/puma/webrick).
-P, [--pid=PID]                              # Specifies the PID file - defaults to tmp/pids/
-C, [--dev-caching], [--no-dev-caching]      # Specifies whether to perform caching in development.
    [--early-hints], [--no-early-hints]      # Enables HTTP/2 early hints.
    [--log-to-stdout], [--no-log-to-stdout]  # Whether to log to stdout. Enabled by default in development when not daemonized.