2011-05-16 4 views
0

예를 들어, heroku_san rake 바로 가기 명령을 사용하여 특정 heroku 응용 프로그램에 코드를 어떻게 푸시합니까? (http://jqr.github.com/2010/08/27/easy-heroku-deploys-with-heroku-san.html에서 촬영)Sinatra와 함께 heroku_san을 어떻게 설정합니까?

rake otherapp heroku:push 

나는 점점 계속 :

rake aborted! 
Don't know how to build task 'otherapp' 

나는 내시나 응용 프로그램 아래에 config 디렉토리가 있습니다. 그리고 여기에는 위의 가이드에서 언급 한 heroku.yml이 포함되어 있습니다. 파일은 다음과 같습니다.

apps: 
    production: mycoolherokuapp 
    otherapp: myotherherokuapp 

나는 이미 heroku에서 만들었습니다.

답변

1

heroku_san은 레일 전용입니다.

사용하는 lib 코드를 보면 Rails.root.join, RAILS_ENV, Rails.configuration 및 Railtie가 있습니다.

+0

감사 스티브에서

require "bundler/setup" require "heroku_san" config_file = File.join(File.expand_path(File.dirname(__FILE__)), 'config', 'heroku.yml') HerokuSan.project = HerokuSan::Project.new(config_file, :deploy => HerokuSan::Deploy::Sinatra) load "heroku_san/tasks.rb" 

참조 설명서를 참조하십시오. 오 잘! –

0

heroku_san의 포크에서 작업 중이므로 (결국) Rails 간의 연결을 제거합니다 & heroku_san. 지금, 나는 테스트 가능한 클래스를 만드는 중이다. https://github.com/kmayer/heroku_san - 시험해보고 의견을 보내주십시오.

0

Ken은 실제로 Sinatra 호환성 코드를 완성했으며 Sinatra 지원을 포함하는 3.0.0 버전을 발표했습니다.

업데이트합니다 Gemfile :

group :development do 
    gem 'heroku_san' 
end 

업데이트합니다 Rakefile : https://github.com/fastestforward/heroku_san

관련 문제