wxs77577 / rest-admin

Restful Admin Dashboard Based on Vue and Boostrap 4
http://rest-admin.genyii.com
MIT License
624 stars 128 forks source link

Blank Page #9

Closed GamingGeek closed 6 years ago

GamingGeek commented 6 years ago

I ran the build command and copied the dist folder but now have a blank page. Could you go into more detail on how to set the API_URI? I have json-server running on port 3005 and would like to use that

https://geekhd.tk/sharex/zodj3.png

wxs77577 commented 6 years ago
  1. Copy .env.production.local to .env.production
  2. Put this code: VUE_APP_API_URL=http://localhost:3005/admin/api/
  3. Open your built url, it should be like this: http://localhost:3005/admin/

Btw, Open dev-tools in chrome to check the error detail.

neogn95 commented 6 years ago

Hey @GamingGeek , what you can do is run this code:

npm run serve

with the endpoint running using this code:

npm run test-api

Make sure you run these in the dist folder, with different cmds if using windows.

GamingGeek commented 6 years ago

@ngopal1995 I wanted to use my current API with it, not the test API. Anyways I found a solution, so I should probably close this