<commit_before>## cozy-stack serve

Starts the stack and listens for HTTP calls

### Synopsis


Starts the stack and listens for HTTP calls
It will accept HTTP requests on localhost:8080 by default.
Use the --port and --host flags to change the listening option.

If you are the developer of a client-side app, you can use --appdir
to mount a directory as the application with the 'app' slug.


```
cozy-stack serve [flags]
```

### Examples

```
The most often, this command is used in its simple form:

	$ cozy-stack serve

But if you want to develop two apps in local (to test their interactions for
example), you can use the --appdir flag like this:

	$ cozy-stack serve --appdir appone:/path/to/app_one,apptwo:/path/to/app_two

```

### Options

```
      --allow-root                     Allow to start as root (disabled by default)
      --appdir stringSlice             Mount a directory as the 'app' application
      --assets string                  path to the directory with the assets (use the packed assets by default)
      --cache-url string               URL for the cache, redis or in-memory
      --couchdb-url string             CouchDB URL (default "http://localhost:5984/")
      --downloads-url string           URL for the download secret storage, redis or in-memory
      --fs-url string                  filesystem url (default "file://localhost/Users/pierre/go/src/github.com/cozy/cozy-stack/storage")
  -h, --help                           help for serve
      --jobs-url string                URL for the jobs system synchronization, redis or in-memory
      --jobs-workers int               Number of parallel workers (0 to disable the processing of jobs) (default 4)
      --konnectors-cmd string          konnectors command to be executed
      --konnectors-oauthstate string   URL for the storage of OAuth state for konnectors, redis or in-memory
      --lock-url string                URL for the locks, redis or in-memory
      --log-level string               define the log level (default "info")
      --log-syslog                     use the local syslog for logging
      --mail-disable-tls               disable smtp over tls
      --mail-host string               mail smtp host (default "localhost")
      --mail-noreply-address string    mail address used for sending mail as a noreply (forgot passwords for example)
      --mail-password string           mail smtp password
      --mail-port int                  mail smtp port (default 465)
      --mail-username string           mail smtp username<commit_msg>Update doc<commit_after>## cozy-stack serve

Starts the stack and listens for HTTP calls

### Synopsis


Starts the stack and listens for HTTP calls
It will accept HTTP requests on localhost:8080 by default.
Use the --port and --host flags to change the listening option.

If you are the developer of a client-side app, you can use --appdir
to mount a directory as the application with the 'app' slug.


```
cozy-stack serve [flags]
```

### Examples

```
The most often, this command is used in its simple form:

	$ cozy-stack serve

But if you want to develop two apps in local (to test their interactions for
example), you can use the --appdir flag like this:

	$ cozy-stack serve --appdir appone:/path/to/app_one,apptwo:/path/to/app_two

```

### Options

```
      --allow-root                     Allow to start as root (disabled by default)
      --appdir stringSlice             Mount a directory as the 'app' application
      --assets string                  path to the directory with the assets (use the packed assets by default)
      --cache-url string               URL for the cache, redis or in-memory
      --couchdb-url string             CouchDB URL (default "http://localhost:5984/")
      --downloads-url string           URL for the download secret storage, redis or in-memory
      --fs-url string                  filesystem url (default "file://localhost/home/nono/storage")
  -h, --help                           help for serve
      --jobs-url string                URL for the jobs system synchronization, redis or in-memory
      --jobs-workers int               Number of parallel workers (0 to disable the processing of jobs) (default 8)
      --konnectors-cmd string          konnectors command to be executed
      --konnectors-oauthstate string   URL for the storage of OAuth state for konnectors, redis or in-memory
      --lock-url string                URL for the locks, redis or in-memory
      --log-level string               define the log level (default "info")
      --log-syslog                     use the local syslog for logging
      --mail-disable-tls               disable smtp over tls
      --mail-host string               mail smtp host (default "localhost")
      --mail-noreply-address string    mail address used for sending mail as a noreply (forgot passwords for example)
      --mail-password string           mail smtp password
      --mail-port int                  mail smtp port (default 465)
      --mail-username string           mail smtp username
{'fraction_non_alphanumeric': 0.07432965299684542, 'fraction_numerical': 0.005126182965299685, 'mean_word_length': 2.046846846846847, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3599410', 'n_tokens_mistral': 1342, 'n_tokens_neox': 1264, 'n_words': 590}