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

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

@JackYoungblood

Description

@JackYoungblood

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>'"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions