{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Private Cloud Deployment /
avatar image
1
Question by jhsieh · May 25, 2017 at 02:29 AM · 229 Views private cloud deployment

apigeetool with Private Cloud

I am trying to run apigeetool to deploy a node app on a private cloud instance, but I always get an invalid URI error for the provided basepath.

I am noticing that there is an append of /v1/o/{ORG_NAME}/apis/{PROXY_NAME}

This is not the relative path on our private cloud set up.

How can I modify this default to work with private cloud?

Thanks,
Jason

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

2 Answers

  • Sort: 
avatar image
2

Answer by yuriyl · May 25, 2017 at 10:02 AM

Hi @jhsieh

This is how I deploy a node app into my private cloud environment:

apigeetool deploynodeapp -L "http://192.168.56.116:8080" -n httpsrequest -d $PWD -m httpsrequest.js -o org -e dev -b /httpsrequest -u admin@apigee.com -p password -v default

where

-L is my Management API URL;

-n is a name of the proxy to be deployed;

-m is a main js module file name;

-o organization to deploy into;

-e environment;

-u and -p are an username and password for a user capable to deploy a proxy;

-v a list of virtual hosts, in case you do not want to deploy to all of them by default.



You can get all parameters by executing apigeetool -h and additional info at this page http://docs.apigee.com/api-services/content/deploying-standalone-nodejs-app

Comment
Add comment Show 3 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jhsieh · May 25, 2017 at 10:49 PM 0
Link

Hi @ylesyuk1,

I get the following error when I try to run the tool:

Error: Error uploading resource groupcheck.js: 500 { "code" : "messaging.config.beans.RepositoryError", "message" : "Repository error", "contexts" : [ ], "cause" : { "code" : "scripts.node.CompilationFailure", "message" : "Compilation error: groupcheck.js:15 syntax error", "contexts" : [ ] } }

Is there some way I need to format the the node file to get the tool to properly parse the script?

Thanks,

Jason

avatar image Raja M jhsieh · May 26, 2017 at 06:37 AM 0
Link

you might have to add -R (resolve-modules) flag for your reference modules

avatar image yuriyl ♦ jhsieh · May 26, 2017 at 07:08 AM 0
Link

Hi @jhsieh


The error is self-explanatory. You have a syntax error on line 15 of your groupcheck.js script.

"Compilation error: groupcheck.js:15 syntax error"

The javascript code is pre-compiled during deployment phase. You need to fix the error first, then it will upload and deploy successfully.


avatar image
0

Answer by Raja M · May 26, 2017 at 06:37 AM

Another Query, on the same lines, can i upload an app instead of just a node app in 1 single file?

https://community.apigee.com/questions/42029/edgeproxy-deployment-with-node-tools.html

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

41 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

is it possible to have two different Virtual hosts (default and something else) use the same alias 1 Answer

Multiple Postgres databases for Apigee Developer Portal 1 Answer

Explanation of apigee-sso SAML service provider certificate 2 Answers

Apigee Private Cloud Blue & Green Deployment 0 Answers

Postgres data copy issue 0 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges