yogiben / meteor-admin

A complete admin dashboard solution
https://atmospherejs.com/yogiben/admin
GNU General Public License v3.0
827 stars 261 forks source link

Can't download css if app is not running on port 80 #327

Closed perusopersonale closed 8 years ago

perusopersonale commented 8 years ago

Hi, I've deploy an app with mup on port 8000 and admin page is not working fine because app is not downloading the proper css.

http://xxx.xxx.xxx.xxx/packages/mfactory_admin-lte/css/skins/skin-black.min.css net::ERR_CONNECTION_TIMED_OUT but it should be:

http://xxx.xxx.xxx.xxx:8000/packages/mfactory_admin-lte/css/skins/skin-black.min.css

Is there a way to fix it?

HelloYie commented 8 years ago

+1 http://localhost:3000/packages/yogiben_admin/lib/client/css/AdminLTE.min.css

I cant't replace the root_url localhost:3000 to ip: 10.xx.xx.xx:3000.

Kostanos commented 8 years ago

I have the same issue. it seems that the hostname to get AdminLTE.css is coming from some variable. It should be changed to relative path

Kostanos commented 8 years ago

I think I found it, it takes domain from ROOT_URL environment variable.

export ROOT_URL="https://<my host>"

Just set up it before starting Meteor. It will fix your issue.

It fixed the issue in my case! Hope it helps to you

perusopersonale commented 8 years ago

good to know...my quick and dirt solution was to copy admin's css in app css:)