-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I have just installed from github a727a02 on a debian stretch system. the version is
sprinkles --version
DumpVersion
0.6.0.0+modifications
(suggestion - it would probably more instructive if the last commit was included in the version)
I followed the 001-getting started instruction and when I run sprinkles 5000 i get
user error ("command line arguments" (line 1, column 1):
unexpected "5000")
when i used sprinkles -serve 5000 I get on opening localhost:5000 (it is not server, as one might expect!)
frank@london:~/Workspace8/testsite/sprinklesFirst$ sprinkles -serve 5000
ServeProject (ServerConfig {scBackendCache = [], scDriver = WarpDriver (Just 5000), scLogger = Nothing, scSessions = SessionConfig {sessCookieName = "ssid", sessCookieSecure = True, sessExpiration = NeverExpire, sessDriver = NoSessionDriver}, scRootDir = ""})
2019-01-01 17:34:39.470230954 UTC [Warning] Template 404.html not found, using built-in fallback
2019-01-01 17:34:39.473773224 UTC [Warning] Template 404.html not found, using built-in fallback
but nothing shows (not even 404). At least an useful error message would be appreciated when one first works with a program. Perhaps it would be better to have as a master branch a version that certainly runs and the development on identified branches and tell in the 001 instructions, which version they were tested with.
I later found the my error: the home.markdown had a mistyped extension (makrdown) which explains that nothing was found. still a helpful error message would be appreciated.
some comments:
the command should have a -h and a --help text, which tells what functions are possible (I think this can be created automatically with CmdLineUtilities.UtilsProcessCmd). It seems to be customary to have -v and --version switches, but not -version.
interesting but challenging project!