我正在通过https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04进行工作.我已经完成了啧啧但是我得到了502错误.
我的nginx服务器块配置文件:
server {
listen 80;
server_name 198..xxx.xxx.xxx mysite.org;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/deploy/mysite3;
}
location / {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/mysite3.sock;
}
}
deploy@server:/etc/nginx/sites-enabled$ sudo systemctl status nginx
? nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2017-02-06 17:30:53 EST; 4s ago
Process: 7374 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, …Run Code Online (Sandbox Code Playgroud) 我正在使用Three.JS制作一架飞机并在其上放置一些箱子我有时需要拆除所有箱子.所以我试着用以下代码来做:
for ( i = 0; i < scene.children.length; i ++ ) {
var object = scene.children[ i ];
if ( object != plane && object != camera) {
scene.remove(object);
}
}
Run Code Online (Sandbox Code Playgroud)
/ 这会杀死不是飞机或相机的每个物体;-) /
它删除了一些盒子,但不是全部= =(我怎么能删除所有盒子?问候,José