doushai4890 2014-12-09 17:37
浏览 153
已采纳

如何将Yii添加到Laravel Homestead的流浪盒中?

i'm using Yii instead of Laravel for a project. I love Homestead, and Yii is running fine in it and hosted just fine, aside from using command lines like "yii migrate", which needs to be run from within vagrant ssh.

how do i add yii to my homestead box's config? i haven't dabbled much with vagrant other than homestead, but i feel like this should be pretty simple.

thank you!

  • 写回答

1条回答 默认 最新

  • doulei2100 2014-12-09 17:55
    关注

    You should be able to just add another site to your homestead.yaml file. From the Laravel docs (http://laravel.com/docs/4.2/homestead):

    Configure Your Nginx Sites

    Not familiar with Nginx? No problem. The sites property allows you to easily map a "domain" to a folder on your Homestead environment. A sample site configuration is included in the Homestead.yaml file. Again, you may add as many sites to your Homestead environment as necessary. Homestead can serve as a convenient, virtualized environment for every Laravel project you are working on!

    You can make any Homestead site use HHVM by setting the hhvm option to true:

    sites:
        - map: homestead.app
          to: /home/vagrant/Code/Laravel/public
        - map: myapp2.com
          to: /home/vagrant/Code/myapp2/public
          hhvm: true
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题