Closed d1rk closed 7 years ago
After installing according to readme, admin-theme does not work, since it can't load the assets/css/lib.css because, it is referenced without the port (3000).
assets/css/lib.css
generated markup from http://localhost:3000/admin/posts
http://localhost:3000/admin/posts
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" href="/assets/images/favicon.png"> <link rel="apple-touch-icon" href="/assets/images/app_icon.png"> <link rel="stylesheet" href="http://localhost/assets/css/lib.css">
i exactly followed the readme:
git clone https://github.com/Postleaf/postleaf.git && cd postleaf git clone https://github.com/Postleaf/empower-theme.git themes/empower-theme cp .env.example .env vim .env npm install sudo npm install -g gulp-cli gulp build node app.js
I just updated the upper part of .env to:
# App NODE_ENV=production APP_URL=http://localhost/ APP_PORT=3000 [...]
opened browser, to http://localhost:3000/
It guided me through creating the user (already unstyled). Frontend works fine.
Thank you for your help and good work.
Your APP_URL needs to include the port for dev since there's no proxy:
http://local host:3000/
Thanks for the clarification.
Summary
After installing according to readme, admin-theme does not work, since it can't load the
assets/css/lib.css
because, it is referenced without the port (3000).generated markup from
http://localhost:3000/admin/posts
i exactly followed the readme:
I just updated the upper part of .env to:
opened browser, to http://localhost:3000/
It guided me through creating the user (already unstyled). Frontend works fine.
Additional info
Thank you for your help and good work.