untitaker / mysteryshack

A remoteStorage-server
https://shack.unterwaditzer.net/
MIT License
117 stars 6 forks source link

Can't find config #73

Closed icidasset closed 6 years ago

icidasset commented 6 years ago

I'm probably doing something wrong but, whatever I try it doesn't seem to find the config file.

~/Githubs/mysteryshack master*          
⚡ mysteryshack --config /Users/stevenvandevelde/Githubs/mysteryshack/config user create icidasset
Failed to parse config: No such file or directory (os error 2)

~/Githubs/mysteryshack master*          
⚡ cat /Users/stevenvandevelde/Githubs/mysteryshack/config
[main]
# On which IP and port to listen.
listen = "localhost:6767"

# Where to store all user data.
data_path = "./data"

# When true, use the following headers for proxy support:
#
# - X-Forwarded-Host: The original Host
# - X-Forwarded-Port: The original port
# - X-Forwarded-For: A comma separated list of client/proxy IPs. Only the first
#   will be taken.
# - X-Forwarded-Proto: The original scheme (`http`/`https`)
#
# Note that all of the above headers need to be present for security reasons,
# otherwise the request will fail.
use_proxy_headers = false

Same thing when I just try it without the --config flag. Could it be because I'm using fish shell? 🤔

Thanks ✌️

untitaker commented 6 years ago

Sorry for the shitty error message, I think you have to create the data directory manually.

On Mon, Oct 30, 2017 at 06:48:22PM +0000, Steven Vandevelde wrote:

I'm probably doing something wrong but, whatever I try it doesn't seem to find the config file.

~/Githubs/mysteryshack master*          
⚡ mysteryshack --config /Users/stevenvandevelde/Githubs/mysteryshack/config user create icidasset
Failed to parse config: No such file or directory (os error 2)

~/Githubs/mysteryshack master*          
⚡ cat /Users/stevenvandevelde/Githubs/mysteryshack/config
[main]
# On which IP and port to listen.
listen = "localhost:6767"

# Where to store all user data.
data_path = "./data"

# When true, use the following headers for proxy support:
#
# - X-Forwarded-Host: The original Host
# - X-Forwarded-Port: The original port
# - X-Forwarded-For: A comma separated list of client/proxy IPs. Only the first
#   will be taken.
# - X-Forwarded-Proto: The original scheme (`http`/`https`)
#
# Note that all of the above headers need to be present for security reasons,
# otherwise the request will fail.
use_proxy_headers = false

Same thing when I just try it without the --config flag. Could it be because I'm using fish shell? 🤔

Thanks ✌️

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/untitaker/mysteryshack/issues/73

icidasset commented 6 years ago

Ah that was it, thanks for the quick answer! 😄