Comments (15)
i have same problem because the root url is not '/'.
u can check this pr: #57
from hexo-admin.
@MaxLFarrell I just merged #57 -- can you run hexo-admin from master
and see if it works?
from hexo-admin.
@jaredly I apologize I'm pretty new to node, do I do this in my packages.json as shown below?
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.2.0"
},
"dependencies": {
"hexo": "^3.2.0",
"hexo-admin": "../hexo-admin",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
"hexo-generator-index": "^0.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.2.0",
"hexo-renderer-marked": "^0.2.10",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.2.0"
}
}
Sorry, wasn't aware of npm install <https://foo.git>
I've installed it this way and still no luck.
from hexo-admin.
@MaxLFarrell I think you must clone code from github, and put it in npm_modules.
from hexo-admin.
npm install --save <https://foo.git>
works. It adds it to my dependencies and to my packages.config. However I still have the original problem. Another relevant point that I will add to the original is that it shows no sign of hexo-admin starting. I don't know if it's supposed to or not.
from hexo-admin.
@MaxLFarrell can u check the npm_modules//hexo-admin/www have bundle.js?
If bundle.js don't exist, you must use grunt to pre-install on npm_modules//hexo-admin.
from hexo-admin.
@v123582 I've got bundle.js. What's the best way to check if hexo-admin is running at all? Does it throw up a flag on hexo server -d
?
from hexo-admin.
@MaxLFarrell , I don't know it.
But if bundle.js exist in it , it should run. cannot you reach /admin now?:(
from hexo-admin.
@v123582
Sorry no.
I run:
hexo server -d
and get:
INFO Start processing
INFO Hexo is running at http://localhost:4000/blog/. Press Ctrl+C to stop.
If you go to http://arcane.info/blog you can see the blog I'm trying to run but try going to http://arcane.info/blog/admin/ .
from hexo-admin.
@v123582 @jaredly Is it possible that the admin panel is not running at http://localhost:4000/blog/admin but instead at http://localhost:4000/admin ?
from hexo-admin.
@MaxLFarrell can see your _config.yml in hexo project?
from hexo-admin.
@v123582 Yeah
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Hexo
subtitle:
description:
author: John Doe
language:
timezone:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com/blog/
root: /blog/
permalink: :year/:month/:day/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace:
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: landscape
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type:
In the extensions sections should I be putting hexo-admin under plugins somewhere?
from hexo-admin.
Alright so I've got it. Basically what's happening is the admin panel is running at http://127.0.0.1:4000/blog/admin/, however node doesn't like it running there because hexo-admin (if i understand correctly) basically runs as a separate application so I basically needed to reverse proxy that url specifically so I ended up added the following to my apache2 config:
ProxyPass /admin http://127.0.0.1:4000/blog/admin/
ProxyPassReverse /admin http://127.0.0.1:4000/blog/admin/
Thanks to both of you for all the help!
from hexo-admin.
I set the new project again and it can work:
- mkdir blog & cd blog, and set config root: /blog
- hexo init & npm i
- npm install --save https://github.com/jaredly/hexo-admin.git
- cd node_modules/hexo-admin
- gulp
- cd ../../
- hexo server -d
from hexo-admin.
I'm encountering the same issue. I can only edit my blog posts by going to http://localhost:4000/blog/admin.
Furthermore, when I paste an image using the Ctrl + V shortcut, the image URL is as follows:
![upload successful](/blog/images/pasted-9.png)
This results in the image path being
http://localhost:4000/blog/blog/images/pasted-9.png
http://.../blog/blog/... (incorrect path)
from hexo-admin.
Related Issues (20)
- bcrypt-nodejs is no longer actively mai ntained. Please use bcrypt or bcryptjs.
- 欧弟
- about del page and post
- 登陆密码忘了怎么找回
- How to delete a draft?
- support images rlative path
- Multiple Admins/Passwords possible?
- Error: Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default. HOT 2
- Deploy cms to heroku
- How to change HTTP to HTTPS
- Advice: move this repo to hexojs official org
- Plugin can't load properly HOT 1
- 报错:Function yaml.safeLoad is removed in js-yaml 4. Use yaml.load instead, which is now safe by default. HOT 2
- 设置登录账户密码后无法编辑博客
- admin新增修改一直loading HOT 4
- How to support keywords just like tag and categories? HOT 1
- white screen HOT 3
- white screen
- add new post can't custom fontmatter
- After entering the password, there is no response when you click SUBMIT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-admin.