Last update at :2024-07-11,Edit by888u
Environment requirements: PHP 7.2+, MySQL 5.7+, Node 6.14+, yarn 1.7+, Redis 3.2+
Function gitbhu login Email verification and user information editing functions Multi-language support Rich background management functions Users post and reply (support @others) Live chat within the site, get notifications without refreshing support markdown Member homepage, follow others, send private messages to others Automatically randomly generate anime avatars for new users
git clone git@github.com:yeskn-studio/vmoex-framework.git && cd vmoex-frameworkModify configuration file
vim app/config/parameters.yml.distPlease follow the comments in the file to modify it to your own server configuration.
Install php dependencies
composer install It may take a long time, please wait patiently. If it fails, it is recommended to modify the composer source. During the process, you will be prompted to enter the configuration. If it is correct, you can press Enter all the way.Install front-end dependencies
yarn install (wait patiently...)Create database
php bin/console doctrine:database:create (if you have manually created the database, you can skip it)Import data
php bin/console doctrine:database:initChange administrator password
php bin/console change-password -u admin -p 123456Create static resource files
php bin/console assetic:dump --env=prodStart websocket
php bin/push-service.php start -dModify file permissions
sudo chown -R var (various log cache storage directories) sudo chown -R web/upload sudo chown -R web/build sudo chown -R [webuser] app/Resources/translations (directory of translation files)Run on server (dev)
php bin/console server:run 0.0.0.0:8000Run locally (dev)
sudo -u php bin/console server:run 127.0.0.1:8000Tip: When running in the above two ways, Kanbanniang may not be able to load, please use nginx to run
Visit
http://[127.0.0.1 or server ip]:8000Deployed on nginx
In the above installation guide, the dev mode is used, which is suitable for development environment. If it is run in a real environment, please be sure to use a web server similar to nginx to run, nginx configuration example:
server { listen 80; server_name www.vmoex.com; root /var/www/vmoex-framework/web; index app.php; if (!-e $request_filename) { rewrite ^(.*)$ /?$1 last; break; } location ~ \.php$ { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; access_log /var/log/nginx/vmoex-access.log main; } }After nginx is configured, you still cannot access the website directly. Please perform the following operations:
Clear cache in prod mode
sudo -u [webuser] php bin/console cache:clear --env=prodGenerate static resource files in prod mode
sudo -u [webuser] php bin/console assetic:dump --env=prodAttention! !
app/config/parameters.yml.dist is not the truly effective configuration file. What is truly effective is the automatically generated app/config/parameters.yml. Please modify this file when you need to modify the configuration. After modification, you need to re- Clear cache or generate static resource files
Open source project: https://github.com/yeskn-studio/vmoex-framework
Recommended site search: foreign permanent free server recommendation, icp registration website, Hong Kong vps host rental, com domain name registration for 1 yuan, server rental, domain name registration number query, which high-defense game server is the best, domain name information query, Hong Kong high-end Anti-server rental asp website space,
发表评论