dqroc48068 2015-06-23 20:09
浏览 69

如何在Heroku上使用Swaggervel?

I have a Laravel app on Heroku and Swaggervel working on my local machine. The problem occurs when I try to get Swaggervel to work on Heroku.

Here is the 'require' portion of my composer.json:

    "require": {
    "laravel/framework": "5.0.*",
    "jlapp/swaggervel": "dev-laravel5"
    }

as well as the relevant part of app.php:

        'App\Providers\EventServiceProvider',
        'Jlapp\Swaggervel\SwaggervelServiceProvider',
        'App\Providers\RouteServiceProvider',

However, when I try to push my code to heroku using git push heroku dev:master, I get:

remote:          Failed to execute git clone --no-checkout 
'git@github.com:mvpasarel/swagger-laravel.git' 
'/tmp/build_46159f28fecb2012869a3849028ff82c/vendor/jlapp/swaggervel' 
&& cd '/tmp/build_46159f28fecb2012869a3849028ff82c/vendor/jlapp/swaggervel' 
&& git remote add composer 'git@github.com:mvpasarel/swagger-laravel.git' 
&& git fetch composer  

heroku run composer update also works without error. Thanks in advance for any help received :)

EDIT: I have managed to get it to work to some extent. However, the api-docs page looks as follows:

enter image description here

  • 写回答

1条回答 默认 最新

  • dpowhyh70416 2015-06-24 03:58
    关注

    From Guzzle docs (different package but related question):

    Bleeding edge

    During your development, you can keep up with the latest changes on the master branch by setting the version requirement for Guzzle to ~6.0@dev.

    {
       "require": {
          "guzzlehttp/guzzle": "~6.0@dev"
       }
    }
    

    You can then change the minimum-stability config as required.

    Have you tried "jlapp/swaggervel": "~2.0@dev"?

    评论

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记