Hi. Commandbox v5.9.0+00721. I create coldbox app ...
# box-products
r
Hi. Commandbox v5.9.0+00721. I create coldbox app from commandbox "coldbox create app name=MyRestAPP skeleton=rest" and get error "IncompleteConfiguration No [userServiceClass] provided. Please set in
config/ColdBox.cfc
under
moduleSettings.cbauth.userServiceClass
." after starting server. How can I fix it?
moduleSettings in coldbox.cfc was empty. Added to moduleSettings: cbAuth : { "userServiceClass" : "UserService" } and it works now. I believe it was working different previously.
b
@lmajano did the rest app template get changed?
It used to work fine out of the box
l
It should, if it doesn, then itΕ› a bug
r
@lmajano It doesn't. Maybe some problems for coldbox7 or cbsecurity 3? I don't see cbsecurity on config/coldbox.cfc
When I create app by commandbox command "coldbox create app skeleton rest", I don't have folder config\modules\ and any files in it. I believe configurations moved in new coldobx-rest version, but commandbox doesn't create it
I downloaded coldbox-rest from github and installed it by "box install" and it works great
I copied config\modules\ to my project (created by commandbox) and it also works great πŸ™‚
b
coldbox create app skeleton rest
@romanstr ☝️ This command is not correct. It's
Copy code
coldbox create app skeleton=rest
It will set the
skeleton
to
rest
, but ironically, only because the
skeleton
parameter is the second parameter πŸ™‚
It will also set the
name
of the app to
skeleton
since
name
is the first parameter.
r
Actually I used command "coldbox create app name=MyRestAPP skeleton=rest". Tonight I was exhausted and typed it incorrect in chat, but used correct command. I captured screencast of this process: https://dl.dropboxusercontent.com/s/qjigog1flnx4nkh/09-36-AM-powershell_Mw0sSHGygIeIbGXRrS8zCE94W.mp4
l
did you install the
coldbox-cli
or are you using the one in CommandBox still there
Ok, I think I replicated it
but not sure why it's failing from commandgbox
and not from the template build process
I think something is amiss
I am investigating now
new templates published
πŸ‘ 1
r
@lmajano it works! thank you!
❀️ 1