我正在尝试在我的heroku应用程序上安装模块。在本地运行(在开始时减去heroku run
)可以正常运行,但是当我尝试在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'
这样做的正确方法是什么?我一直在寻找,但我找不到任何文件。
答案 0 :(得分:3)
从未使用过heroku,但也许这个step by step tutorial可能会帮助你。
答案 1 :(得分:1)
在本地添加模块后,您应该能够添加对git所做的更改,然后将新版本的应用程序推送到Heroku。