Postleaf / postleaf

Simple, beautiful publishing with Node.js.

Home Page:https://www.postleaf.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

admin-theme does not work

d1rk opened this issue · comments

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

  • Postleaf version: latest master (876c264)
  • Node version: v6.10.1
  • Affected browsers: Safari
  • Operating system: macOS Sierra 10.12.5 (not really relevant)

Thank you for your help and good work.

Thanks for the clarification.