Python pseudo-developer for Sohu Cloud View evaluation

Source: Internet
Author: User
Tags vps ssh access git shell

Python pseudo-Developer's assessment of Sohu Cloud View

I am a fan of Gae and OpenShift and have played various foreign PAAs. A Python web program that wants to get a little more complicated, needs a better network transfer speed, and tries to find the pre-PM (Project Manager) to play a domestic VPS. The former PM said that recently engaged in a Sohu Cloud view Beta activation code, let me try first, so I have my first strange python application in SCE.

PS:SCE is Sohu Cloud view is independent research and development of Sohu Company and language-independent, can provide elastic scaling services of the public cloud PAAs platform, is committed to develop into the most open PAAs platform. (No responsibility copy from SCE official Weibo)

Spit Groove at the front

My first Python app is still simple, with only dozens of lines of code in the RESTful API, with a web framework that is flask and easy to smile. When deploying to SCE, it was found that the SCE Python does not have a flask module and does not provide a background automatic installation of fields like require in the App.yaml configuration file. (according to the management of the technology group, this feature is now online)

leads to Flask the Hard Way

SSH + easy_install Dafa

Zhuang is my big flask. Unfortunately SCE officials have no support. How to do it ... Fortunately, I found the SCE support ssh this magical thing, so putty got a hand and found the Python directory, and then there are easy_install ... After a try ... Hahaha ... Bingo

The code package contains the DAFA

It is also a good idea to include Flask directly in the code package, including the/lib/folder in the code bundle, and then install the package directly into the code package with pip install flask-t lib/, valid only for the pure Python package, and not valid for PyPI packages that contain other language compilations.

PS: I should open a sce-python-flask-skeleton on GitHub and give a link later.

All right, SCE is also the advantage of ...

Git Deployment

Although many people are more comfortable with SVN (the way the domestic cloud is mostly used, simple and rude), I am the most accustomed git deployment as a GitHub player and openshift user. I have always felt that git push Origin master after a cup of coffee to look at the git shell behind a row of jumping out of the deployment log, is the easy and comfortable programmer's life. Although SCE does not have a deployment log for that row for the time being. ╮ (╯_╰) ╭

SSH Access

The SCE container (officially referred to as an "example", to some extent castrated by a more severe VPS) is supported by SSH access, even though the ping command has been castrated. It can be easy_install and curl. Interested children's shoes please continue yy ... PS: I have succeeded in breaking the other person in the technology group, and you don't know anything about telling anyone.

Multi-lingual support

SCE supports a seemingly large number of languages, Java, PHP, Python, Ruby, Lua, NodeJS (no responsibility for copy from the official website). A domestic cloud engine that starts with a (evil laughter) only supports Java and PHP, and then a Drupal is the first step to fail, and I just abandon it.

Summarize

I still like the SCE. This very flexible PAAs, similar to OpenShift, does not have the complex constraints and standalone APIs (which are too expensive for porting) like traditional PAAs (similar to gae,sae), and there is no high price and complex configuration like normal IaaS. Perhaps I prefer this kind of myself to dig a little bit, explore the feeling of discovery. Just interested students, can go to Sohu Cloud View http://cloudscape.sohu.com on the application of vouchers coupons free experience, Cloud view service is pretty good.

Python pseudo-developer for Sohu Cloud View evaluation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.