How do you package a ColdFusion app for deployment...
# cfml-general
o
How do you package a ColdFusion app for deployment?
g
Generally, you don't. There is no "make" / "build" artefacts to worry about. There is no compiled JAR for you to deal with. It is "just" a set of files at a URL. That can be at your LOCALHOST or somewhere else. The Lucee Server (or Adobe CF server) will compile the CFM / CFC files into Java classes for you. Then they (compiled Java) gets displayed to the end-user via the Java Container you're using. Eg. It might be Apache Tomcat or Undertow (The Lucee "installer" uses Tomcat / "box" uses Undertow) (The compiled Java gets cached - so it isn't doing a recompile every time someone goes to the same URL) If you're talking about getting code you developed on your "dev" machine to a "test / staging / production" server - then that is up to you / your team / etc. But at it's simplest : copy files from "devmachine\myAppHome\" to "destination\myAppHome" You might PUSH your DEV changes to GIT Then to get them onto a (for example a TEST server) do a git pull (from the Test Server) to update it's code to match, what you pushed to git from DEV; Instead of directly copying from your local DEV machine. But this is NOT a CFML / Lucee / AdobeCF, "thing" - it is an application deployment process - much like you would have in place for any other language.
o
So its similar to how PHP works, I thought I had to do something specific like
codebox app publish
and copy the resulting
war
or
jar
file to the server. Are there any places I can host my CodeFusion project for free or a one time fee? It is an open source project so $2.5k yearly + $15 hosting is a no go for me.
e
Let me explain, if you want to publish all the source files and code, then github all the way, secondary would be sourceforge. If you want the application to run, then Vultr or Digital Ocean (or aws, azure, softlayer, dedi path, so on and so forth)
b
Me personally? Docker. In general, CF is a JIT compiled language, so just FTP'ing the source files to a production server would also fit the bill
o
Does ColdFusion 10 Server Enterprise work with CodeBox? Will this work with my project? Source: https://bitbucket.org/ookma-kyi/ookma-kyi-core/src/master/ Hosting: https://efree2net.com/lifetime-unlimited-hosting.cfm
b
Do you mean CommandBox by chance?
o
The framework running my ColdFusion web app
b
There should be no reason at all for you to be using ColdFusion 10 at this point in time
It's incredibly old
Do you mean ColdBox?
o
yes
b
CF 10 is very very very old
Why on earth would you want to use it?
And no, ColdBox dropped support for CF10 many years ago
It's been out of support from Adobe for years as well
o
The host has it as the server, so I didn't know if it would work
b
What host?
o
Oh ok then that makes things simplier 🙂
b
No one in their right mind should be using CF10 in the year 2022
o
b
That's like running an Windows NT server with IIS 1.0
o
ApplicationsPHP 5.6, 7, 7.3, 7.4 Perl, CGI-BIN, Coldfusion 10 Enterprise
b
Don't use it, lol
o
Ok thanks
b
Heck, you can run Lucee anywhere-- just get a cheap digital ocean VM if you need
Heck, AWS lightsail even