Skip to content

Missing UI elements when accessing via Vagrant Box - Bad Base HREF URL  #20

@weierophinney

Description

@weierophinney

My issue is similar to #16 except I ran this from the repo's own vagrant box

My repro was

  • Install from composer create
  • Boot up the vagrant box provided in the skeleton
  • vagrant ssh
  • enabled development mode
  • then ran php -S 0.0.0.0:8080 -t public public/index.php

So on my host machine (outside the vbox),

  • Go to http://localhost:9090/
  • Get the ApiGility welcome message
  • Click on "Get Started"
  • Directs me to http://localhost:9090/apigility/ui
  • I see an unstyled page with {{ flash.message }} vars around

I do have the rwoverdijk/assetmanager directory in my vendor folder and it works fine.

I encountered a similar situation on my own vagrant box with the same issue. So I tried it with the skeleton's own vagrant box and still encountered the error.

My local enviroment

  • Ubuntu Desktop 14.04
  • Vagrant 1.6.2
  • Virtulabox 4.3.6

Any help would be great

Update: The problem does not appear if I load up the built-in PHP server locally - it only happens when if I access it via Vagrant (the php web server is started from the vagrant instance)
If I ran the PHP web server in Vagrant and access it to there, it will give me missing UI issues.
But I just ran it locally (without Vagrant), this works fine. It is still an issue because I would like to enable my fellow developers to run Apigility from their vagrant boxes and ensuring everyone is on the same env settings.


Originally posted by @mechastorm at zfcampus/zf-apigility-skeleton#64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions