2013-02-12 1 views
1

나는 cloudfoundry에 appfuse를 배포하고 싶습니다. 나는이 실행되면 유닉스 명령 : cloudfoundry 또는 다른 곳에 appfuse를 배포하는 방법은 무엇입니까?

mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring-archetype -DarchetypeVersion=2.2.1 -DgroupId=se.ova -DartifactId=artpage -DarchetypeRepository=http://oss.sonatype.org/content/repositories/appfuse 
cd artpage 
mvn clean install -Ppostgresql 
vmc push 
more ~/.vmc/crash 

나는이 메시지 :

Time of crash: 
    2013-02-12 11:24:26 +0100 

CFoundry::AppInvalid: 300: Invalid application description 

cfoundry-0.4.21/lib/cfoundry/v1/base.rb:113:in `handle_response' 
cfoundry-0.4.21/lib/cfoundry/baseclient.rb:146:in `block in request_uri' 
/usr/lib/ruby/1.9.1/net/http.rb:745:in `start' 
cfoundry-0.4.21/lib/cfoundry/baseclient.rb:127:in `request_uri' 
cfoundry-0.4.21/lib/cfoundry/baseclient.rb:48:in `request' 
cfoundry-0.4.21/lib/cfoundry/baseclient.rb:44:in `request_path' 
cfoundry-0.4.21/lib/cfoundry/baseclient.rb:193:in `request_with_options' 
cfoundry-0.4.21/lib/cfoundry/baseclient.rb:205:in `post' 
cfoundry-0.4.21/lib/cfoundry/v1/model_magic.rb:34:in `block (2 levels) in define_client_methods' 
cfoundry-0.4.21/lib/cfoundry/v1/model.rb:72:in `create!' 
vmc-0.4.7/lib/vmc/cli/app/push/create.rb:59:in `block in create_app' 
interact-0.5.2/lib/interact/progress.rb:98:in `with_progress' 
vmc-0.4.7/lib/vmc/cli/app/push/create.rb:58:in `create_app' 
vmc-0.4.7/lib/vmc/cli/app/push.rb:95:in `setup_new_app' 
vmc-0.4.7/lib/vmc/cli/app/push.rb:82:in `push' 
mothership-0.3.5/lib/mothership/base.rb:61:in `run' 
mothership-0.3.5/lib/mothership/command.rb:68:in `block in invoke' 
manifests-vmc-plugin-0.4.19/lib/manifests-vmc-plugin/plugin.rb:113:in `call' 
manifests-vmc-plugin-0.4.19/lib/manifests-vmc-plugin/plugin.rb:113:in `block (2 levels) in <class:Manifests>' 
mothership-0.3.5/lib/mothership/callbacks.rb:74:in `with_filters' 
manifests-vmc-plugin-0.4.19/lib/manifests-vmc-plugin/plugin.rb:112:in `block in <class:Manifests>' 
mothership-0.3.5/lib/mothership/command.rb:78:in `instance_exec' 
mothership-0.3.5/lib/mothership/command.rb:78:in `block (2 levels) in invoke' 
mothership-0.3.5/lib/mothership/command.rb:82:in `instance_exec' 
mothership-0.3.5/lib/mothership/command.rb:82:in `invoke' 
mothership-0.3.5/lib/mothership/base.rb:50:in `execute' 
vmc-0.4.7/lib/vmc/cli.rb:106:in `execute' 
mothership-0.3.5/lib/mothership.rb:45:in `start' 
vmc-0.4.7/bin/vmc:11:in `<top (required)>' 
/usr/local/bin/vmc:23:in `load' 
/usr/local/bin/vmc:23:in `<main>' 

사람이 무엇이 잘못되었는지 아이디어가있다거나 어떻게 다른 PaaS를에 AppFuse에 배포 할 수 있습니까? 나는 cloudfoundry에 roo 응용 프로그램을 배포했으며 훌륭하게 작동했지만 rof 응용 프로그램을 추가로 개발하고 이미지 업로드 및 전자 메일 구성을 추가하는 데 어려움이있어 appfuse가 더 쉬울 것이라고 생각했지만 PaaS 서비스에 어떻게 든 배포하고 싶습니다. .

답변

3

vmc push은 현재 디렉토리에서 배포한다고 가정합니다. 귀하의 예에서 이것은 실패합니다. 그 이유는 산출물 앱이 없기 때문입니다.

어느

  • target/<the_exploded_app> 디렉토리로 이동 vmc push
  • 을하거나 그것을해야

vmc push --path target/<the_exploded_app_or_the_dot_war> 것을 사용합니다. 인덱스 /nonexistent/artpage-1.0-SNAPSHOT/index 조직 : 당신이 스택 아래로 멀리 근본 원인을 보면

+0

의견을 보내 주셔서 감사합니다. 그 점을 염두에 두지 만, 할 때 나는 여전히 같은 스택 추적을 얻는다 :'vmc push --path target/artpage-1.0-SNAPSHOT.war' 나는 vmc 질문에 대답한다 : 이메일, 인스턴스 1 개, 스프링, java7 , 512 M. 나는 더 간단한 앱으로 시도 할 것이다. 나는 서비스 바인딩 부분을 정말로 이해하지 못한다. 그러나 나는 더 많이 읽어야한다고 생각한다. – Hurve

+0

참으로 이상하다. 참고로, 서비스 바인딩은 일종의 지속성 (예 : MySQL 또는 귀하의 경우에는 추측 할 수있는 postgresql)을 프로비저닝하고 배포 된 앱이이를 인식하도록합니다. 차례로 앱은 명시 적으로 (지루한) 또는 자동으로 (앱 프레임 워크에 따라 Spring, Node 및 RoR을 지원) 명시 적으로 연결할 수 있습니다. appfuse와 함께 작동해야합니다. – ebottard

+0

그래서 자동 검색 솔루션을 선택하면 dbms 자격 증명을 입력합니까? – Hurve

0

, 당신은

인덱스 디렉토리를 만들 수 없습니다, 오류가 말을 볼 것이다 .appfuse.model.User

즉, 색인 작성이 디스크에서 작성 중일 때 쓰기 권한이 없음을 의미합니다. 여기 문제에 당신을 도울해야 좋은 블로그 :

http://appfuse.547863.n4.nabble.com/Preparing-for-the-2-2-Release-td4655656.html

은 또한 그 기억 만 한 응용 프로그램 인스턴스가 실행되고 지속됩니다 생성 된 파일.

관련 문제