Postleaf / postleaf

Simple, beautiful publishing with Node.js.
https://www.postleaf.org/
MIT License
504 stars 204 forks source link

admin-theme does not work #61

Closed d1rk closed 7 years ago

d1rk commented 7 years ago

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

  <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.

Additional info

Thank you for your help and good work.

claviska commented 7 years ago

Your APP_URL needs to include the port for dev since there's no proxy:

http://local host:3000/

d1rk commented 7 years ago

Thanks for the clarification.