2011-12-14 88 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。