This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
See Vite Configuration Reference.
npm install
npm run dev
npm run build
Including Git configuration, uWSGI configuration, nginx configuration
After creating a git repository for your project, you consider maintaining the code by git, developing code in the local workplace, and deploying it on your server.
You may encounter such a situation that can't push your changes to the remote repository. It shows "error: src refspec master does not match any. "
Due to the recent "Replacing master with main in GitHub" action, you may notice that there is a refs/heads/main
. As a result, the following command may change from git push origin HEAD:master
to git push origin HEAD:main
The other problem is you are required such as a personal access token for all authenticated Git operations on GitHub.com.
Here is introduction for uWSGI, installing pyuwsgi requires python3-devel head file for compile(uWSGI is a (big) C application, so you need a C compiler (like gcc or clang) and the Python development headers.). In Centos 7, the following command help you install python3-devel
yum search python3-devel
yum install python3-devel
pip install uwsgi # in venv
You can type following command to start wsgi.
uwsgi --http 0.0.0.0:5000 --master -p 4 -w hello:app
- Here option "--http" indicate that you use wsgi as a http server instead of proxy server or
uwsgi uwsgi.ini
uwsgi.ini
[uwsgi]
http = 0.0.0.0:5000
chdir = /home/project/
wsgi-file = hello.py
callable = app
processes = 4
master = true
threads = 2
stats = 0.0.0.0:8080
daemonize = /home/project/log/mylog.log
There is only one thing you need to consider, the router would confilct with nginx. You need to add following text to your nginx.config
location / {
try_files $uri $uri/ /index.html?uri=$uri
}