31 lines
575 B
Markdown
31 lines
575 B
Markdown
# install
|
||
|
||
```shell
|
||
pip install -r requirements.txt
|
||
|
||
pip install git+https://github.com/RobWeber3/django-token.git
|
||
|
||
```
|
||
|
||
# migrations
|
||
|
||
不要在本机上做make migrations 和migrate!
|
||
|
||
```shell
|
||
cd /home/g214/tools/nmm/NewMediaMonitoring
|
||
git pull # enter username && password
|
||
source .venv/bin/activate
|
||
python manage.py make migrations
|
||
python manage.py migrate
|
||
```
|
||
|
||
# 查看服务器apache 内存使用情况
|
||
|
||
```shell
|
||
sudo /usr/sbin/passenger-memory-stats
|
||
```
|
||
|
||
|
||
eb3e67e892173f14c600cbfa39da053b111e47ff
|
||
|
||
675063ff1d43f2e897fda5d70bb6c5bea57ce451 |