cloudfoundry

CloudFoundry application opening two ports

橙三吉。 提交于 2019-12-23 15:17:58
问题 I have a CF application that opens two ports. AFAIK CF can create routing on only for one of them - to the one that is located in VCAP_APP_PORT or PORT . How can I create some route to the second port? I don't mind having separate name directing to other port. 回答1: Currently an application on Cloud Foundry is not able to have two ports mapped into its container environment. As part of the new Diego runtime, multiple port mappings has been exposed, but is not currently available through the

How to run a spring application on cloud foundry as a one-off task using the java buildpack

99封情书 提交于 2019-12-23 10:43:23
问题 I would like to run a spring application on cloudfoundry as a one-off task using the java buildpack. Please note that my app is not a web application but a spring batch application that also uses spring cloud task. Here is my manifest: --- buildpack: https://github.com/cloudfoundry/java-buildpack.git memory: 1024M env: APPLICATION_URL: http://bignibou-server.cfapps.io/ APPLICATION_MAIL_NO_REPLY_ADDRESS: balteo@bignibou-server.cfapps.io SPRING_PROFILES_ACTIVE: cloud applications: - name:

How to run a spring application on cloud foundry as a one-off task using the java buildpack

假装没事ソ 提交于 2019-12-23 10:42:23
问题 I would like to run a spring application on cloudfoundry as a one-off task using the java buildpack. Please note that my app is not a web application but a spring batch application that also uses spring cloud task. Here is my manifest: --- buildpack: https://github.com/cloudfoundry/java-buildpack.git memory: 1024M env: APPLICATION_URL: http://bignibou-server.cfapps.io/ APPLICATION_MAIL_NO_REPLY_ADDRESS: balteo@bignibou-server.cfapps.io SPRING_PROFILES_ACTIVE: cloud applications: - name:

Detect the version of CloudFoundry/Bluemix

六眼飞鱼酱① 提交于 2019-12-23 08:07:35
问题 I am trying to detect the version of Bluemix/Cloud Foundry. Is there a command I can use to do this? cf -version tells you the version of the commandline interface, but not the version of the server you are "push"ing to. thanks anthony 回答1: You can get the version of CloudFoundry that Bluemix is running on via the CloudFoundry info endpoint. US South Datacenter - https://api.ng.bluemix.net/info (currently 226 as of this posting) EU UK Datacenter - https://api.eu-gb.bluemix.net/info (currently

Detect the version of CloudFoundry/Bluemix

烂漫一生 提交于 2019-12-23 08:07:11
问题 I am trying to detect the version of Bluemix/Cloud Foundry. Is there a command I can use to do this? cf -version tells you the version of the commandline interface, but not the version of the server you are "push"ing to. thanks anthony 回答1: You can get the version of CloudFoundry that Bluemix is running on via the CloudFoundry info endpoint. US South Datacenter - https://api.ng.bluemix.net/info (currently 226 as of this posting) EU UK Datacenter - https://api.eu-gb.bluemix.net/info (currently

Deploy Cloudfoundry app with Service (Spring Boot)

扶醉桌前 提交于 2019-12-23 03:55:08
问题 I'm having a problem deploying an app with a service in cloudfoundry. It's been a week and i can't find a solution. Can you tell me guys whats wrong with my code? BTW, i can deploy without a service but when binding a service and trying to connect to the database hangs the deployment. I'm using spring sts in my deployment. I hope someone can help me figure this out. this is my reference btw : https://github.com/jwlayug/spring-cloud and https://github.com/jwlayug/spring-cloud/tree/master

Specific configuration per space in manifest.yml

拈花ヽ惹草 提交于 2019-12-23 02:16:46
问题 Is there a way to set a manifest.yml property for a specific space, e.g. if I want to have 5 instances of my service when deploying to the production space but having only 1 for all other spaces? 回答1: A few options come to mind: You can override manifest.yml settings with cf cli arguments. Thus you could put an instance count of one into your manifest.yml file (actually, you don't need to do this because one is the default value but you can put any value in the file) and when you cf push that

Download Application files from Bluemix

半城伤御伤魂 提交于 2019-12-22 22:25:14
问题 Is there a way to download the content of an application running on Bluemix after staging it? 回答1: Bluemix uses cloud foundry (CF) to manage the platform. By default the CF CLI does not have the capability to download the Application files from Bluemix. On CF CLI version 6.10.0 or higher, we can install a download plugin to retrieve these files from Bluemix locally. To install the plugin follow the below commands: $ cf add-plugin-repo CF-Community http://plugins.cloudfoundry.org/ $ cf install

Angular2 - Nginx route 404 error on cloudfoundry

末鹿安然 提交于 2019-12-22 18:35:40
问题 I am using cloud foundry platform to deploy angular2 app using nginx based ststicfile buildpack. Upon refreshing on a sub route /my-route I am getting 404. I want any path such as www.mysite.com/some-ng2-router-path to redirect back to www.mysite.com I have seen several posts about this but I can't figure out how to edit the nginx.conf file on the server, and I do not want to use the hash bang approach. What do I do? Thanks 回答1: Are you trying to map routes within your app? e.g. cf map-route

I am having trouble starting my node app in Bluemix

与世无争的帅哥 提交于 2019-12-22 06:37:46
问题 I am trying to start my node app in Bluemix and getting a weird error. My app works locally. I have copied a snippet out of my app below. var express = require("express"), app = express(); app.get("/", function (request, response) { response.render("index"); }); app.listen(8080); My app never starts in Bluemix. The error I am getting on Bluemix is below. [11:07 AM] jsloyer@Jeffs-MacBook-Pro [testapp]>cf push myapp Creating app myapp in org myemail@co.com / space demos as myemail@co.com... OK