Just downloaded the express version of Lucee to my...
# lucee
o
Just downloaded the express version of Lucee to my web server, where should I put in? Should I leave it in home/<username>/lucee/ or should i move it?
b
If you're looking for a fast and easy way to spin up Lucee servers without an installation, may I suggest CommandBox? It's orders of magnitude easier to start, configure, and update than Lucee express.
šŸ’Æ 1
@Ookma-Kyi
o
@bdw429s Actually this is for my VPS on Oracle Cloud
b
My last message still stands šŸ™‚
o
So I assume I can use Commandbox on a production server?
b
Yes, of course. Many people do this
Both inside of Docker or just on VMs, VPSs, or even raspberry Pis
In fact, the CommandBox-powered Docker images are more common in production than the "official" Lucee ones (per the SOTCFU survey responses)
o
Where do you usually put the commandbox exe, inside a /etc/commandbox folder?
b
It depends on the OS, but it doesn't really matter. For *nix installs I think I usually put it in
usr/local/bin
so it's in the PATH
I normally just use the apt/yum installation which takes care of that for me
o
How do you do this on Ubuntu 21.04 LTS?
b
Are you asking how to use
apt
? that seems like something that's probably covered a lot in Linux forums
There's how to add our apt repo
o
no i was looking to see why it wasn't working before, found instruction here: https://commandbox.ortusbooks.com/setup/installation
b
What wasn't working?
o
it said package not found before
working on getting it running
Commandbox is installed and runs! Thanks for the help šŸ™‚
g
@Ookma-Kyi There are a lot of "parts" - when you're first starting out. And even if you come from a "similar" background (say PHP), the Lucee / Coldfusion "way of doing things" - could feel odd and unfamiliar. Things you thought you knew, previously, don't seem to be working properly - and you start to doubt everything you thought you knew. But - things are "pretty" basic. Do you have a working "web server"? Does it successfully answer requests to "your App's URL"? : HTML only? If No : sort out your web server issues If yes - awesome : continue. Do you have Lucee installed successfully? Can you get to the Administrator pages to prove it is installed correctly? If no - diagnose your Lucee installation problems. Can you get to your CF application? Does a really simple "test.cfm" work? (I normally just have a dump(server); or something else that is just as simple - but exercises the Lucee server in some way.) ***** If you're still having issues - with your app after proving all the above is working - then it is normally a "config" issue. Do you have a mail server defined in the ADMIN? Do you have all the mappings defined correctly in the ADMIN? Do you have any custom tag paths defined in the ADMIN? Do you have any datasources defined in the ADMIN - AND do they validate? Etc... ***** If you have all these correct - check them again! - and again! I don't know how many times I could have "thought" I had ALL the right mappings - but left one out. Or had one pointing to the wrong (but similarly named other) folder - so I sincerely believed everything was fine - but it wasn't :( Before the "********" above - all of that is handled for you by commandBox, if you choose to use it. it IS super easy to use and learn. You can tell it what version of Lucee to use, how much Java Heap to use / etc. It has CFCONFIG - which is one of the greatest tools I have ever used. And CFCONFIG handles all the stuff (and more) between the two rows of "********" (above). You can use CommandBox in Production, without issue. • which means you can create "nearly" the exact same environment in Production that you have on your TEST/STAGING server AND your local dev machine. • Have a look at commandBox "*recipes*" - so you can script the differences for your separate environments. ā—¦ MUCH easier to have a "solid" / "editable" / "repeatable" scripts - than doping it by hand, accidentally missing something - and ending up down a rabbit-hole of confusion / frustration and doubt - just because you left out a step / did something "slightly" different. Whichever way you go : Once you have some confidence that the "platform" is correct - all you have after that, is CFML programming - the fun part! Irrespective - keep asking questions - people are happy to help. Please : before you ask for help - try a few things for yourself first and in your messages (asking for help) - mention all the things you tried and the results you got. That way, not only can we help with your issue - but we might see where something went wrong in "your process" and help you fix that, too! Best of luck!
o
@gavinbaumanis
Please : before you ask for help - try a few things for yourself first and in your messages (asking for help) - mention all the things you tried and the results you got.
That way, not only can we help with your issue - but we might see where something went wrong in "your process" and help you fix that, too!
I don't understand, I did try to research but all I found was using the official Adobe server which is waaaaaaayyy too expensive and Lucee which is "the alternative".
b
@Ookma-Kyi I think that was just general advice regarding asking questions.
o
oh sorry, thanks for the advice
g
@Ookma-Kyi Sorry, it wasn't clear. Brad was correct : just, overall, advice for everything and anything.