Skip to content
This repository was archived by the owner on Oct 5, 2020. It is now read-only.

Commit aced94f

Browse files
authored
Merge pull request #488 from grtjn/master
Fixed #484 and more
2 parents 0c33c2f + 5abf806 commit aced94f

File tree

5 files changed

+32
-8
lines changed

5 files changed

+32
-8
lines changed

README.mdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,13 @@ roles for you, and deploy the back-end application code.
117117

118118
./ml local bootstrap
119119
./ml local deploy modules
120+
./ml local deploy content
120121

121122
Or on Windows:
122123

123124
ml.bat local bootstrap
124125
ml.bat local deploy modules
126+
ml.bat local deploy content
125127

126128
## Launch your Application
127129

app/templates/README.mdown

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ generator, and uses the following components:
1313
To deploy and run the application you need:
1414

1515
- [node.js v0.10+](http://nodejs.org/download/)
16-
- [npm v2+](https://www.npmjs.com/): Built-in package manager for node (comes with
17-
node, but check to be sure you have latest version: `npm install -g npm`)
18-
- [gulp](http://gulpjs.com/): Javascript task automation (`npm install -g
19-
gulp`)
20-
- [Bower](http://bower.io/): A package manager for front-end libraries (`npm
21-
install -g bower`)
16+
- [npm v2+](https://www.npmjs.com/): Built-in package manager for node (comes with node)
17+
- [gulp](http://gulpjs.com/): Javascript task automation (`npm install -g gulp`)
18+
- [Bower](http://bower.io/): A package manager for front-end libraries (`npm install -g bower`)
2219
- [Git](https://git-scm.com/) - Roxy depends on this version control system
2320
- [Ruby v1.9.3+](https://www.ruby-lang.org/en/documentation/installation/) - Roxy
2421
depends on Ruby in order to run server configuration scripts
@@ -89,11 +86,13 @@ roles for you, and deploy the back-end application code.
8986

9087
./ml local bootstrap
9188
./ml local deploy modules
89+
./ml local deploy content
9290

9391
Or on Windows:
9492

9593
ml.bat local bootstrap
9694
ml.bat local deploy modules
95+
ml.bat local deploy content
9796

9897
## Launch your Application
9998

app/templates/WINDOWS.mdown

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Additional Microsoft Windows Requirements
2+
3+
Some required modules do not have native Windows modules available and require a development environment in which they can be compiled. To do this, npm uses node-gyp to create these modules. For more information, please read the [node-gyp documentation](https://github.com/nodejs/node-gyp/blob/master/README.md)
4+
5+
## Install Required Dependencies
6+
7+
- [npm](https://www.npmjs.com/): Built-in package manager for node (comes with
8+
node, but check to be sure you have latest version: `npm install -g npm`). Older versions of npm (versions older than 2.0) are not able to upgrade themselves properly. If `npm -v` does not reveal the latest version (3.7.3 at this time of writing) after installing the latest version, open an elevated command prompt and change to the nodejs home directory (typically C:\Program Files\nodejs) and execute `npm install npm`.
9+
- [Python 2.7](https://www.python.org/downloads/release/python-2710/): Python 2.7 is required. If you already have a different version, you will need to tell npm to use this version of python `npm config set python C:\Path\to\Python2.7`
10+
- [Visual Studio Community Edition](https://www.visualstudio.com/): Visual Studio Community Edition or Express Edition is required to provide a valid VC++ environment. Please make sure that VC++ and Windows SDK are both selected during install. You will need to set the environment variable `GYP_MSVS_VERSION` to the version of Visual Studio installed. This will probably be `2013` for Windows 7-8.1 and `2015` for Windows 10.
11+
12+
## Use of Elevated Command Prompt
13+
14+
If your installation of node and npm required elevated priviledges, you will need to use an elevated command prompt to upgrade npm and perform all global `npm install -g` commands. When scaffolding your project using slush, a normal command prompt is sufficient.
15+
16+
## Configuring MLCP
17+
18+
The default location for MLCP is `/usr/local/mlcp`. This path is unlikely the appropriate location of your MLCP install. To specify the correct location of MLCP in Windows, edit/create `deploy\local.properties` and add
19+
```
20+
mlcp-home=C:\\path\\to\\mlcp
21+
```
22+
Please note that the backslash is being escaped by a second backslash. This inserts a literal backslash instead of inserting an escape character in Java.

app/templates/rest-api/config/options/all.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@
152152
-->
153153

154154
<!-- This will extract the latitude and longitude from the search. -->
155-
<extract-document-data selected="all">
155+
<extract-document-data selected="include">
156+
<extract-path>//location</extract-path>
156157
</extract-document-data>
157158

158159
</options>

app/templates/rest-api/ext/extsimilar.xqy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function ext:post(
4545
json:to-array(
4646
(
4747
for $doc in cts:search(collection(), cts:and-query(($collection-q,cts:similar-query(doc($uri)))))
48-
let $similar-uri := base-uri($doc)
48+
let $similar-uri := xdmp:node-uri($doc)
4949
where $similar-uri != $uri
5050
return $similar-uri
5151
)[1 to $limit]

0 commit comments

Comments
 (0)