Long time no see. So this time, I want to refresh my knowledge about python. This time, starting with scrapy (latest version when this article created is 1.0.3). Beside, I have a side project called ayorakit, that using scrapy so heavy.
Here is the step:
PHP – FPM mean Fcgi Process Manager, I usually pair with nginx, here is how to install nginx.
When this tutorial written, latest stable version of nginx is
1.6.2, and the latest nginx mainline version is
1.7.10. But, when it comes to centos, “If it ain’t broke, don’t fix it“, so I choose a stable one. Here is the code.
yum update -y
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
curl -O http://rpms.famillecollet.com/enterprise/remi.repo
echo "[nginx]" >> /etc/yum.repos.d/nginx.repo
echo "name=nginx repo" >> /etc/yum.repos.d/nginx.repo
echo "baseurl=http://nginx.org/packages/centos/6/\$basearch/" >> /etc/yum.repos.d/nginx.repo
echo "gpgcheck=0" >> /etc/yum.repos.d/nginx.repo
echo "enabled=1" >> /etc/yum.repos.d/nginx.repo
yum install -y nginx
service nginx restart
To make sure it’s installed :
..[$] <()> netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8013 0.0.0.0:* LISTEN 13063/nginx
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 13063/nginx
Right now I implement on Digitalocean (it has referral link) because it’s fast and easy to deploy, my favorite feature is snapshot. I usually using the smallest one ($5 / month), when it goes well in the smallest one, it will be better on the bigger one.
Sailsjs make it easy to build custom, enterprise-grade Node.js apps.
So, recently I watch this video. And I think it is really worth to try, really awesome do everything that simple, like create a REST API, it use ORM. And since my quote is, lazier is better, I think this framework suites me, I think I will use this framework in my next project, create a GIS based system. I think I will use leafletjs, since it use openstreetmap. I’m still working on it, I will share when it’s done.
Here is the awesome video :
Here is starting point before you start this tutorial :