-
- location /fly {
- alias /home/paiai/work/pai2/media/fly; # your Django project's media files - amend as required
- }
-}
-
-# configuration of the server
-server {
- # the port your site will be served on
- listen 80;
- # the domain name it will serve for
- server_name .api.pai.ai .api.xfoto.com.cn; # substitute your machine's IP address or FQDN
- charset utf-8;
-
- # max upload size
- client_max_body_size 75M; # adjust to taste
-
- # Django media
- location /media {
- alias /home/paiai/work/pai2/media; # your Django project's media files - amend as required
- }
-
- location /static {
- alias /home/paiai/work/pai2/collect_static; # your Django project's static files - amend as required
- }
-
- # Finally, send all non-media requests to the Django server.
- location / {
- # uwsgi_pass pai2;
- proxy_pass http://pai2;
- include /home/paiai/work/pai2/pai2/uwsgi/uwsgi_params; # the uwsgi_params file you installed
- }
-}
-
-# configuration of the server
-server {
- # the port your site will be served on
- listen 80;
- # the domain name it will serve for
- server_name .pai.ai .xfoto.com.cn; # substitute your machine's IP address or FQDN
- charset utf-8;
-
- # max upload size
- client_max_body_size 75M; # adjust to taste
-
- # Django media
- location /media {
- alias /home/paiai/work/pai2/media; # your Django project's media files - amend as required
- }
-
- location /static {
- alias /home/paiai/work/pai2/collect_static; # your Django project's static files - amend as required
- }
-
- # Finally, send all non-media requests to the Django server.
- location / {
- # uwsgi_pass pai2;
- proxy_pass http://pai2;
- include /home/paiai/work/pai2/pai2/uwsgi/uwsgi_params; # the uwsgi_params file you installed
- }
-}
@@ -1,12 +0,0 @@ |
||
| 1 |
-[program:pai2] |
|
| 2 |
-command=/home/paiai/env/bin/uwsgi --ini /home/paiai/work/pai2/pai2/uwsgi/pai2.ini |
|
| 3 |
-autostart=true |
|
| 4 |
-autorestart=true |
|
| 5 |
-startretries=3 |
|
| 6 |
-exitcodes=0,1,2 |
|
| 7 |
-stopsignal=KILL |
|
| 8 |
-stopasgroup=true |
|
| 9 |
-killasgroup=true |
|
| 10 |
-stdout_logfile=/var/log/supervisor_pai2_access.log |
|
| 11 |
-stderr_logfile=/var/log/supervisor_pai2_error.log |
|
| 12 |
-user=paiai |
@@ -14,12 +14,12 @@ |
||
| 14 | 14 |
|
| 15 | 15 |
/* For Download Section */ |
| 16 | 16 |
.download_section {position:fixed;right:0;bottom:0;left:0;height:55px;padding:5px;background:#f0f0f0;box-sizing:border-box}
|
| 17 |
- .pai2_icon {width:45px;height:45px;float:left}
|
|
| 18 |
- .pai2_icon>img {width:100%;height:100%}
|
|
| 19 |
- .pai2_desc {height:45px;padding:5px 0 0 5px;float:left}
|
|
| 20 |
- .pai2_name {padding-top:2px;font-size:14px;text-align:left}
|
|
| 21 |
- .pai2_des {padding-top:2px;font-size:12px;line-height:23px;color:#8f8f8f;text-align:left}
|
|
| 22 |
- .pai2_download {position:relative;top:5px;width:100px;height:35px;line-height:35px;text-align:center;background:#d13621;color:#fff;border-radius:5px;float:right;text-decoration:none}
|
|
| 17 |
+ .kodo_icon {width:45px;height:45px;float:left}
|
|
| 18 |
+ .kodo_icon>img {width:100%;height:100%}
|
|
| 19 |
+ .kodo_desc {height:45px;padding:5px 0 0 5px;float:left}
|
|
| 20 |
+ .kodo_name {padding-top:2px;font-size:14px;text-align:left}
|
|
| 21 |
+ .kodo_des {padding-top:2px;font-size:12px;line-height:23px;color:#8f8f8f;text-align:left}
|
|
| 22 |
+ .kodo_download {position:relative;top:5px;width:100px;height:35px;line-height:35px;text-align:center;background:#d13621;color:#fff;border-radius:5px;float:right;text-decoration:none}
|
|
| 23 | 23 |
/* For PC */ |
| 24 | 24 |
body, .download_section {
|
| 25 | 25 |
max-width: 414px !important; |
@@ -35,22 +35,22 @@ |
||
| 35 | 35 |
</div> |
| 36 | 36 |
|
| 37 | 37 |
<div id="download_section" class="download_section"> |
| 38 |
- <div class="pai2_icon"> |
|
| 39 |
- <img src="{% static 'pai2/img/paiai_96_96.png' %}">
|
|
| 38 |
+ <div class="kodo_icon"> |
|
| 39 |
+ <img src="{% static 'kodo/img/paiai_96_96.png' %}">
|
|
| 40 | 40 |
</div> |
| 41 |
- <div class="pai2_desc"> |
|
| 42 |
- <div class="pai2_name">拍爱</div> |
|
| 43 |
- <div class="pai2_des">即拍即分享</div> |
|
| 41 |
+ <div class="kodo_desc"> |
|
| 42 |
+ <div class="kodo_name">拍爱</div> |
|
| 43 |
+ <div class="kodo_des">即拍即分享</div> |
|
| 44 | 44 |
</div> |
| 45 |
- <a href="https://api.pai.ai/op/download" target="_blank" id="pai2_download" class="pai2_download">立即下载</a> |
|
| 45 |
+ <a href="https://api.pai.ai/op/download" target="_blank" id="kodo_download" class="kodo_download">立即下载</a> |
|
| 46 | 46 |
</div> |
| 47 | 47 |
|
| 48 | 48 |
<script type="text/javascript" src="//cdn.bootcss.com/zepto/1.1.6/zepto.min.js"></script> |
| 49 | 49 |
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> |
| 50 |
- <script type="text/javascript" src="{% static 'pai2/js/jswe-0.0.4.js' %}"></script>
|
|
| 50 |
+ <script type="text/javascript" src="{% static 'kodo/js/jswe-0.0.4.js' %}"></script>
|
|
| 51 | 51 |
<script> |
| 52 | 52 |
V.initWxData({
|
| 53 |
- imgUrl: "http://pai.ai/static/pai2/img/paiai_96_96.png", |
|
| 53 |
+ imgUrl: "http://pai.ai/static/kodo/img/paiai_96_96.png", |
|
| 54 | 54 |
link: window.location.href, |
| 55 | 55 |
desc: "我使用拍爱分享了一张美图,你也快来试试吧", |
| 56 | 56 |
title: "拍爱", |
@@ -14,12 +14,12 @@ |
||
| 14 | 14 |
|
| 15 | 15 |
/* For Download Section */ |
| 16 | 16 |
.download_section {position:fixed;right:0;bottom:0;left:0;height:55px;padding:5px;background:#f0f0f0;box-sizing:border-box}
|
| 17 |
- .pai2_icon {width:45px;height:45px;float:left}
|
|
| 18 |
- .pai2_icon>img {width:100%;height:100%}
|
|
| 19 |
- .pai2_desc {height:45px;padding:5px 0 0 5px;float:left}
|
|
| 20 |
- .pai2_name {padding-top:2px;font-size:14px;text-align:left}
|
|
| 21 |
- .pai2_des {padding-top:2px;font-size:12px;line-height:23px;color:#8f8f8f;text-align:left}
|
|
| 22 |
- .pai2_download {position:relative;top:5px;width:100px;height:35px;line-height:35px;text-align:center;background:#d13621;color:#fff;border-radius:5px;float:right;text-decoration:none}
|
|
| 17 |
+ .kodo_icon {width:45px;height:45px;float:left}
|
|
| 18 |
+ .kodo_icon>img {width:100%;height:100%}
|
|
| 19 |
+ .kodo_desc {height:45px;padding:5px 0 0 5px;float:left}
|
|
| 20 |
+ .kodo_name {padding-top:2px;font-size:14px;text-align:left}
|
|
| 21 |
+ .kodo_des {padding-top:2px;font-size:12px;line-height:23px;color:#8f8f8f;text-align:left}
|
|
| 22 |
+ .kodo_download {position:relative;top:5px;width:100px;height:35px;line-height:35px;text-align:center;background:#d13621;color:#fff;border-radius:5px;float:right;text-decoration:none}
|
|
| 23 | 23 |
/* For PC */ |
| 24 | 24 |
body, .download_section {
|
| 25 | 25 |
max-width: 414px !important; |
@@ -37,22 +37,22 @@ |
||
| 37 | 37 |
</div> |
| 38 | 38 |
|
| 39 | 39 |
<div id="download_section" class="download_section"> |
| 40 |
- <div class="pai2_icon"> |
|
| 41 |
- <img src="{% static 'pai2/img/paiai_96_96.png' %}">
|
|
| 40 |
+ <div class="kodo_icon"> |
|
| 41 |
+ <img src="{% static 'kodo/img/paiai_96_96.png' %}">
|
|
| 42 | 42 |
</div> |
| 43 |
- <div class="pai2_desc"> |
|
| 44 |
- <div class="pai2_name">拍爱</div> |
|
| 45 |
- <div class="pai2_des">即拍即分享</div> |
|
| 43 |
+ <div class="kodo_desc"> |
|
| 44 |
+ <div class="kodo_name">拍爱</div> |
|
| 45 |
+ <div class="kodo_des">即拍即分享</div> |
|
| 46 | 46 |
</div> |
| 47 |
- <a href="https://api.pai.ai/op/download" target="_blank" id="pai2_download" class="pai2_download">立即下载</a> |
|
| 47 |
+ <a href="https://api.pai.ai/op/download" target="_blank" id="kodo_download" class="kodo_download">立即下载</a> |
|
| 48 | 48 |
</div> |
| 49 | 49 |
|
| 50 | 50 |
<script type="text/javascript" src="//cdn.bootcss.com/zepto/1.1.6/zepto.min.js"></script> |
| 51 | 51 |
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> |
| 52 |
- <script type="text/javascript" src="{% static 'pai2/js/jswe-0.0.4.js' %}"></script>
|
|
| 52 |
+ <script type="text/javascript" src="{% static 'kodo/js/jswe-0.0.4.js' %}"></script>
|
|
| 53 | 53 |
<script> |
| 54 | 54 |
V.initWxData({
|
| 55 |
- imgUrl: "http://pai.ai/static/pai2/img/paiai_96_96.png", |
|
| 55 |
+ imgUrl: "http://pai.ai/static/kodo/img/paiai_96_96.png", |
|
| 56 | 56 |
link: window.location.href, |
| 57 | 57 |
desc: "我使用拍爱分享了一张美图,你也快来试试吧", |
| 58 | 58 |
title: "拍爱", |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 |
# -*- coding: utf-8 -*- |
| 2 | 2 |
|
| 3 |
-from pai2.basemodels import PlatformMixin |
|
| 3 |
+from kodo.basemodels import PlatformMixin |
|
| 4 | 4 |
from utils.redis.connect import r |
| 5 | 5 |
from utils.redis.rkeys import APP_PATCH_INFO |
| 6 | 6 |
|
@@ -1,6 +1,6 @@ |
||
| 1 | 1 |
# -*- coding: utf-8 -*- |
| 2 | 2 |
|
| 3 |
-from pai2.basemodels import PlatformMixin |
|
| 3 |
+from kodo.basemodels import PlatformMixin |
|
| 4 | 4 |
from utils.redis.connect import r |
| 5 | 5 |
from utils.redis.rkeys import APP_SETTINGS_INFO |
| 6 | 6 |
|
@@ -4,5 +4,5 @@ from django.conf import settings |
||
| 4 | 4 |
from django.shortcuts import redirect |
| 5 | 5 |
|
| 6 | 6 |
|
| 7 |
-def pai2_home(request): |
|
| 7 |
+def kodo_home(request): |
|
| 8 | 8 |
return redirect(settings.WEBSITE_MOBI if request.mobile else settings.WEBSITE_PC) |