2011-12-14 84 views
2

我試圖在我的heroku應用上安裝一個模塊。在本地運行(在開始時減去heroku run),但在嘗試在Heroku上運行時出現錯誤。Heroku安裝播放框架模塊

heroku run play install securesocial-0.2.2 

和這裏的輸出

... 
~ Do you want to install this version (y/n)? y 
~ Installing module securesocial-0.2.2... 
~ 
~ Fetching http://www.playframework.org/modules/securesocial-0.2.2.zip 
Traceback (most recent call last): 
    File ".play/play", line 153, in <module> 
    status = cmdloader.commands[play_command].execute(command=play_command, app=play_app, args=remaining_args, env=play_env, cmdloader=cmdloader) 
    File "/app/.play/framework/pym/play/commands/modulesrepo.py", line 58, in execute 
    install(app, args, env) 
    File "/app/.play/framework/pym/play/commands/modulesrepo.py", line 378, in install 
    Downloader().retrieve(fetch, archive) 
    File "/app/.play/framework/pym/play/commands/modulesrepo.py", line 88, in retrieve 
    try: urllib.urlretrieve(url, destination, self.progress) 
    File "/usr/local/lib/python2.7/urllib.py", line 91, in urlretrieve 
    return _urlopener.retrieve(url, filename, reporthook, data) 
    File "/usr/local/lib/python2.7/urllib.py", line 241, in retrieve 
    tfp = open(filename, 'wb') 
IOError: [Errno 2] No such file or directory: u'/app/.play/modules/securesocial-0.2.2.zip' 

什麼是做到這一點的正確方法?我一直在尋找,但我找不到任何文檔。

回答

3

從未使用過的heroku,但也許這step by step tutorial可能會幫助你。

+0

謝謝!看起來像Heroku自動解決依賴關係。 – Joel 2011-12-14 08:17:54

1

在本地添加模塊後,您應該能夠添加對git所做的更改,然後將新版本的應用程序推送到Heroku。