简体   繁体   中英

Heroku installing play framework modules

I'm trying to install a module on my heroku app. Running this locally (minus the heroku run at the start) works, but I get an error when trying to run it on Heroku.

heroku run play install securesocial-0.2.2

and here's the output

...
~ 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'

What's the proper way to do this? I've been searching, but I can't find any documentation on it.

从未使用过heroku,但也许本分步教程可能会对您有所帮助。

在本地添加模块后,您应该能够添加对git所做的更改,然后将新版本的应用程序推送到Heroku。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM