commit aa34ff1bd9be7c3c7775522112909c8fc6779411
parent 18e7537393492953882a80aa1468800fa122edea
Author: Paul Woolcock <pwoolcoc@gmail.com>
Date: Tue, 1 Feb 2022 10:54:26 -0500
Fix start command invocation (#372)
When I tried to start the server using the command `./gotosocial server start --config-file ./config.yaml`, I got the following error:
```
root@gotosocial-experiment:/gotosocial# ./gotosocial server start --config-file ./config.yaml
Incorrect Usage: flag provided but not defined: -config-file
NAME:
gotosocial server start - start the gotosocial server
USAGE:
gotosocial server start [command options] [arguments...]
OPTIONS:
--help, -h show help (default: false)
FATA[0000] flag provided but not defined: -config-file
```
Putting the flag after the `./gotosocial` but before the `server start` seems to work properly
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/installation_guide/binary.md b/docs/installation_guide/binary.md
@@ -63,7 +63,7 @@ You can now run the binary.
Start the GoToSocial server with the following command:
```bash
-./gotosocial server start --config-path ./config.yaml
+./gotosocial --config-path ./config.yaml server start
```
The server should now start up and you should be able to access the splash page by navigating to your domain in the browser. Note that it might take up to a minute or so for your LetsEncrypt certificates to be created for the first time, so refresh a few times if necessary.