gpt4 book ai didi

java - Heroku 安装 Play Framework 模块

转载 作者:行者123 更新时间:2023-11-30 07:29:25 25 4
gpt4 key购买 nike

我正在尝试在我的 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'

执行此操作的正确方法是什么?我一直在搜索,但找不到任何相关文档。

最佳答案

从未使用过 heroku,但也许是这个 step by step tutorial可能会帮助你。

关于java - Heroku 安装 Play Framework 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8500978/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com