Система CMS на основе открытого исходного кода Cody
Цель: создать систему CMS для генерации страниц мобильных устройств, используя Bootstrap.
Следуя этим шагам, вы сможете быстро запустить свою собственную систему CMS. Если какой-либо из шагов не работает, пожалуйста, сообщите об этом как о проблеме в этом репозитории GitHub, и мы рассмотрим её как можно скорее!
Скопируйте package.json в этот каталог.
npm install --save.
Перейдите в каталог node_modules.
$ git clone git@git.oschina.net:dugulao3/cody.git cody
$ node ./node_modules/cody/bin/create_site
Creating cody web tree in current directory
1) Enter sitename: mysite
Note: also using my site as database name.
Note: by default the mysql root user has no password so you can just hit enter, if you forgot the root password see http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
2) Enter root password for mysql so we can create a new database and user:
3) Enter site database user: mysitename
4) Enter site database password: mysitepassword
5) Enter hostname for site: mysite.local (or localhost)
Site mysite has been prepared.
Please create DNS entries, or add to /etc/hosts:
127.0.0.1 mysite.local
Also check index.js and config.json to fine-tune extra parameters, encryption key, ...
Start your site using:
forever start mysite.js
or
node mysite.js
$ sudo bash -c 'echo 127.0.0.1 mysite.local >> /etc/hosts'
$ node mysite.js
или если вы хотите автоматически перезапускать сервер при изменениях:
$ forever start mysite.js
По умолчанию пользователи: 'super', 'admin', 'test' и 'user', у всех пароль 'empty'. Конечно, вы можете использовать «http://localhost:3001» тоже.
You can comment after Login
Inappropriate content may be displayed here and will not be shown on the page. You can check and modify it through the relevant editing function
If you confirm that the content does not involve inappropriate language/advertisement redirection/violence/vulgar pornography/infringement/piracy/false/insignificant or illegal content related to national laws and regulations, you can click submit to make an appeal, and we will handle it as soon as possible.
Comments ( 0 )