In Commandbox I try running "wheels scaffold" and ...
# wheels-dev
c
In Commandbox I try running "wheels scaffold" and it thinks cfwheels 3.0.0 is installed. It's looking for model under app. I did try 3.0.0 in another folder a while ago. I tried to uninstall then install cfwheels in Commandbox. Any idea where I should look?
z
Thanks for the message, Could you please list what the error or blocker you found?
I would suggest to start with
wheels new
command
It will ask couple of questions while setting up and you will good to go
LMK if you find any blocker here.
c
ERROR (6.2.1+00830) [C:\lucee\tomcat\webapps\zzz\app\models] can't be found. Are you running this from your site root?
wheels new works OK.
z
Ok great, lmk if you find any issue
FYI: With wheels 3.0, the directory structure has been updated. All the controllers, models, views, libs, migrations and etc now reside in the app folder. So the developer will mostly work with things inside the app folder. Along with wheels, the wheels-cli has also been updated to follow the latest standards and will generate code in the proper places and will provide extended functionality to wheels.
c
No matter what version I have installed, wheels scaffold and wheels g ???? still thinks I am using cfwheels 3.0.0. It tries to use app/model. How do I get it to see cfwheels version 2.5.x
z
if you want to install wheels 2.5 then you can run the "wheels new" command and select the wheels 2.5 version to install. You can also install wheels 2.5 using "wheels g app" command by passing in the template argument for 2.5
c
Yes, "wheels new" does let me install 2.5 with no problem. However, subsequent calls to "wheels scaffold" thinks it's the 3.0 folder setup with most things under the app folder, so it errors out when it can't find app/model.
z
I think there is a confusion about to use the CLI, If you want to use the wheels CLI, Please follow the old wheels version standards then you would have to install the older CLI version. You can uninstall the current version and install the older version using command
box install cfwheels-cli@1.1.0
. This will install the older version of cli which is compatible with wheels 2.5.