xbrowsersync / api

Server-side REST API that serves requests from xBrowserSync client apps
GNU General Public License v3.0
796 stars 83 forks source link

Using PM2 css not loaded #5

Closed aphe closed 6 years ago

aphe commented 6 years ago

I try to install on my server. the service using pm2, using 127.0.0.1:8080 and create virtualhost so i can access using my subdomain.

but all the css and js not loaded, and return {"code":"ResourceNotFound","message":"/css/bootstrap.min.css"} when i try to access directly.

and when i try to change service on the chrome extension the domain became red.

how can i tell the service is working? the pm2 log show only this xBrowserSync-API started on 127.0.0.1:8080 ...

aphe commented 6 years ago

never mind, all i need to change is process.env.XBROWSERSYNC_DB_USER & process.env.XBROWSERSYNC_DB_PWD at the config.js

nero120 commented 6 years ago

Hi @aphe, glad you solved your issue. I do recommend you run v1.1.0 as the dependencies have been updated and it supports running the service over HTTPS. I'm currently testing before upgrading https://api.xbrowsersync.org and merging to master, but if you do find any issues please raise them here.

aphe commented 6 years ago

v.1.1.0 is beautifull. is there a plan to support browser history as well?

nero120 commented 6 years ago

is there a plan to support browser history as well?

It's been requested here, if it's something you're interested in please do register your feedback on the issue!