Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Problem using ml new without --server-version #495

Closed
JackYoungblood opened this issue Jul 9, 2015 · 4 comments
Closed

Problem using ml new without --server-version #495

JackYoungblood opened this issue Jul 9, 2015 · 4 comments
Labels
Milestone

Comments

@JackYoungblood
Copy link

When I run this command roxy creates a new project without complaint:

bash ml new junk11 --app-type=rest --branch=dev --server-version=8

However, if I omit the --server-version flag and run this:
bash ml new junk11 --app-type=rest --branch=dev

I get the following error (Note that I had no time to type the server version when prompted. The script ran straight through to the error:
Creating new Application: junk11...
Cloning into 'junk11'...
remote: Counting objects: 4044, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 4044 (delta 5), reused 0 (delta 0), pack-reused 4029
Receiving objects: 100% (4044/4044), 7.76 MiB | 4.80 MiB/s, done.
Resolving deltas: 100% (2290/2290), done.
Checking connectivity... done.

No initial source code is provided for REST apps. You can copy code from Application Builder under the source directory.
Required option --server-version=[version] not specified with valid value.

What is the version number of the target MarkLogic server? [5, 6, 7, or 8]
ERROR: No such file or directory - junk11
ERROR: ["/home/nizdobs/roxy/junk11/deploy/lib/server_config.rb:307:in gets'", "/home/nizdobs/roxy/junk11/deploy/lib/server_config.rb:307:in gets'", "/home/nizdobs/roxy/junk11/deploy/lib/server_config.rb:307:in prompt_server_version'", "/home/nizdobs/roxy/junk11/deploy/lib/server_config.rb:209:in init'", "deploy/lib/ml.rb:126:in <main>'"]

@dmcassel
Copy link
Collaborator

dmcassel commented Jul 9, 2015

What version of ruby are your using?

@JackYoungblood
Copy link
Author

ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

@grtjn
Copy link
Contributor

grtjn commented Sep 18, 2015

Could it be that the changes to run 'headless' (for slush-marklogic-node) have caused this side-effect?

@grtjn grtjn added this to the 1.7.3 milestone Sep 18, 2015
@grtjn grtjn added the bug label Sep 18, 2015
grtjn added a commit to grtjn/roxy that referenced this issue Sep 22, 2015
@grtjn grtjn self-assigned this Sep 22, 2015
dmcassel added a commit that referenced this issue Sep 22, 2015
Fixed #495: gets reads ARGF first, fixed to read STDIN only
@grtjn
Copy link
Contributor

grtjn commented Sep 22, 2015

Fixed in dev

@grtjn grtjn closed this as completed Sep 22, 2015
grtjn added a commit to grtjn/roxy that referenced this issue Jan 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants