https://github.com/naoyeye/xiami2lastfm
[DEPRECIATED] xiami & last.fm auto scrobbler. 自动同步虾米播放记录到 last.fm
https://github.com/naoyeye/xiami2lastfm
Last synced: 3 months ago
JSON representation
[DEPRECIATED] xiami & last.fm auto scrobbler. 自动同步虾米播放记录到 last.fm
- Host: GitHub
- URL: https://github.com/naoyeye/xiami2lastfm
- Owner: naoyeye
- Created: 2016-11-12T12:38:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-25T08:04:45.000Z (almost 9 years ago)
- Last Synced: 2024-10-12T15:01:28.185Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 206 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# xiami2lastfm
-----
```bash
cp config-example.py config.py
````vim config.py`
edit `mysql_passwd`, `API_KEY` and `API_SECRET` .
import `scrobble.sql` into mysql.
```bash
mysql.server start
```## development:
```bash
python index.py
```running on http://127.0.0.1:5000/
## production:
```bash
pm2 start index.py --name xiami
```----
restart:
```bash
pm2 restart index.py --update-env
```## 部署备忘:
阿里云上用 python 启动:端口 5000(调试用):
```bash
python index.py --host 127.0.0.1 --port 5000
```直接访问 123.57.21.239:5000 是不行的。通过 linode 的 nginx 指向了阿里云 nginx 80 端口,aliyun nginx 监听 80 端口,然后再指向 5000 ,流程:
http://xiami2lastfm.han.im/ => 123.57.21.239:80 => 123.57.21.239:5000
## 报错:
```bash
[root@iZ25677w1axZ xiami2lastfm]# nginx -s reload
nginx: [error] invalid PID number "" in "/run/nginx.pid"
```解决:
```bash
/usr/sbin/nginx -c /etc/nginx/nginx.conf
```