commandbox.properties is being ignored

24 views
Skip to first unread message

Jason Daiger

unread,
Sep 26, 2020, 11:14:15 AM9/26/20
to CommandBox
It appears the commandbox.properites files is getting ignored on OSX Catalina when using CommandBox version 5.1.1  
OR...
I'm simply doing something wrong.  Here's the setup:

Binary: /usr/local/bin/box
Created: commandbox.properties file in the /usr/local/bin directory
The files contains:
commandbox_home=/Users/Shared/CommandBox

When I start box w/ 
$> box -commandbox_home=/Users/Shared/CommandBox

The 'info' command displays as expected
*  CommandBox Binary   /usr/local/bin/box                                                          *
*  CommandBox Home     /Users/Shared/CommandBox

But when I start box w/out the command_home parameter, 'info' displays:
*  CommandBox Binary   /usr/local/bin/box                                                          *
*  CommandBox Home     /Users/jasondaiger/.CommandBox

Is there a permissions issue? Do I have the properties file in the wrong location? Or something?

Any advice/assistance is appreciated.

Thanks,
-Jason Daiger

Brad Wood

unread,
Sep 26, 2020, 1:28:20 PM9/26/20
to CommandBox
Are you using any symlinks?  Check out this note on the Homebrew installation regarding the commandbox.properties file.


Thanks!

~Brad

Developer Advocate
Ortus Solutions, Corp 

ColdBox Platform: http://www.coldbox.org 



--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/3e1f0460-54c9-4391-9752-4b27bc38add8n%40ortussolutions.com.

Jason Daiger

unread,
Sep 27, 2020, 8:02:51 AM9/27/20
to CommandBox, Brad Wood
@Brad,
Thanks, I know it was likely something simple.   Moving the file to /usr/local/Cellar/commandbox/<version>/bin/ works as desired.

Side note: when running as 'sudo box' the tray icon doesn't appear & the default browser doesn't use my local system browser.  Everything is working and functioning as desired otherwise.  Thanks again for pointing out my oversight. 

Brad Wood

unread,
Sep 28, 2020, 12:54:13 PM9/28/20
to Jason Daiger, CommandBox
I assume the differences related to using sudo are that the process is running as the root user.  I'm not a Mac guy however so I'm not really sure.

Thanks!

~Brad

Developer Advocate
Ortus Solutions, Corp 

ColdBox Platform: http://www.coldbox.org 


Reply all
Reply to author
Forward
0 new messages