Skip to content

Commit 93ad977

Browse files
Batch file for Caché application one-command deployment
1 parent dd1b0c6 commit 93ad977

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To participate in development of this application, you have [NodeJS](https://nod
2323

2424
The development process of this application **lies completely outside Caché**. It includes
2525
structured file tree under `source` directory, and each of that files can be edited in your
26-
favorite text editor.
26+
favorite source editor.
2727

2828
When the source is ready, you need global gulp module to perform builds. Open the command prompt and
2929
install it with one command:
@@ -32,7 +32,7 @@ install it with one command:
3232
npm install -g gulp
3333
```
3434

35-
Then you have to install all project dependencies by running this command:
35+
Then you have to install all project dependencies by running this command from the project's root:
3636

3737
```bash
3838
npm install
@@ -44,8 +44,8 @@ And now you are ready to build the project from the sources! This time and each
4444
gulp
4545
```
4646

47-
And take your ready to import sources in `build/cache` folder.
47+
Take your ready to import sources in `build/cache` folder.
4848

49-
Note that all the sources are plaintext \*.cls files which currently can be imported
50-
**only through Atelier** in Caché 2016.\* and higher. _If you have discovered a way to import \*.cls
51-
files into the studio except of using Atelier UI, please, create an issue and describe the method._
49+
To simplify development on Windows (scripts for other platforms are welcome),
50+
make the copy of `import.bat` file and edit the path to your Caché instance there.
51+
Then you can just use one command `import` (etc) to deploy the project from source to Caché.

import.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
:: This batch script makes the Caché application deployment faster. Replace the path below to your
2+
:: Caché installation and build & import application to Caché only by one command.
3+
4+
:: CHANGE THIS PATH TO YOUR CACHÉ INSTALLATION PATH ON WINDOWS
5+
set CACHE_DIR=C:\Program Files\InterSystems\Cache20162
6+
7+
gulp & echo w "OK:"_$system.OBJ.ImportDir("%~dp0build\cache",,"ck") halt | "%CACHE_DIR%\bin\cache.exe" -s "%CACHE_DIR%\mgr" -U USER

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"author": "ZitRo",
1515
"license": "MIT",
1616
"devDependencies": {
17-
"babel-core": "^6.5.2",
1817
"babel-preset-es2015": "^6.6.0",
1918
"babelify": "^7.2.0",
2019
"browserify": "^13.0.0",

source/cache/VisualEditor.Installer.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ClassMethod RegisterWebApplication(name As %String, spec) As %Status
1818
set $Namespace = "%SYS"
1919
set st = $$$OK
2020
if ('##class(Security.Applications).Exists(name)) {
21-
write !,"Creating WEB application """_name_"""..."
21+
write !, "Creating WEB application """_name_"""..."
2222
set st = ##class(Security.Applications).Create(name, .spec)
2323
if ($$$ISOK(st)) {
2424
write !, "WEB application """_name_""" is created."
@@ -84,7 +84,7 @@ ClassMethod RemoveProjection(cls As %String, ByRef params, recompile As %Boolean
8484

8585
do ..DeleteWebApplication(..#RESTAppName)
8686

87-
write !, "Uninstallation is complete!"
87+
write !, "Uninstalling is complete!"
8888

8989
return $$$OK
9090
}

0 commit comments

Comments
 (0)