(beginner Pyton) self-built a set of test automation release code Django

Source: Internet
Author: User

Because this project is currently in charge of my operation, after the vacation is also because of some updated things to find me, it is not supposed to build an automated publishing platform is better. Because the development language only learned some python, I wanted to do it with Django.

Suffering from the front-end is not very familiar, and online to see a great God to do a framework, so take the next, if there is infringement, please contact me, I immediately delete. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0041.gif "alt=" J_0041.gif "/>


Put it down here and say the idea. If anyone has a good idea, please let me know. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0015.gif "alt=" J_0015.gif "/>


Here added a verification code, but tried many times, the verification code three words placed in front of the input box will be disorderly format, the front-end good slag.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/3F/wKioL1YXWD2w2u5VAAELfPpCkAQ465.jpg "style=" float: none; "title=" Login.png "alt=" Wkiol1yxwd2w2u5vaaelfppckaq465.jpg "/>

Here's the idea: Git log-1 get to hash time autor. The order is also to commit the code first (rollback code) These are implemented on this server and then published to the remote side.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/3F/wKioL1YXWEGy2yVYAASKqHVQ5wk191.jpg "style=" float: none; "title=" Git_web.png "alt=" Wkiol1yxwegy2yvyaaskqhvq5wk191.jpg "/>

git commit-m "submit message title" This quotation mark is here, because it is necessary. So stand alone page out

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/3F/wKioL1YXWELiYTDjAAI8bGBZBuw350.jpg "style=" float: none; "title=" Web_commit.png "alt=" Wkiol1yxweliytdjaai8bgbzbuw350.jpg "/>

Here is the execution output information after the code is released, very insecure. Because it was a test, it didn't change.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/42/wKiom1YXWCzzAlcYAATxbvVDpEo473.jpg "style=" float: none; "title=" Git_release.png "alt=" Wkiom1yxwczzalcyaatxbvvdpeo473.jpg "/>

Here you can see that the last record is already a fabric. Same as on the web. If there are many Web servers that can synchronize files with Sersync.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/3F/wKioL1YXWEWCsxsHAAEC7eLqQJY360.jpg "style=" float: none; "title=" Confirm_web.png "alt=" Wkiol1yxwewcsxshaaec7elqqjy360.jpg "/>

The app is not git anymore. A python fabric is used instead. In fact, the web can do this, but I'm too lazy, so I haven't changed

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/3F/wKioL1YXWEnDaYHeAAVkCTrjIX0169.jpg "style=" float: none; "title=" App_list.png "alt=" Wkiol1yxwendayheaavkctrjix0169.jpg "/>

Here is the execution of the Stop service. Md5sum is to confirm that if an updated bin file has been successfully updated, there are many trial versions of the development

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/42/wKiom1YXWDPR3sRcAATi-bAMd78721.jpg "style=" float: none; "title=" Stop_app.png "alt=" Wkiom1yxwdpr3srcaati-bamd78721.jpg "/>

If the PID is still alive, it needs to be refreshed and tried again. Until it succeeds.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/3F/wKioL1YXWFCT_72FAAIspZa4xaY932.jpg "style=" float: none; "title=" Commit_close_app.png "alt=" Wkiol1yxwfct_72faaispza4xay932.jpg "/>

There is a missing figure, the PID will be zero after success. After opening, the PID will be obtained PID, the following is 5301, the server saw is also 5301

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/42/wKiom1YXWDqB-nrPAAJ3nAVeWhE733.jpg "style=" float: none; "title=" Start_app.png "alt=" Wkiom1yxwdqb-nrpaaj3navewhe733.jpg "/>

This article is from the "tireless learning ..." Blog, be sure to keep this source http://jonyisme.blog.51cto.com/3690784/1701218

(beginner Pyton) self-built a set of test automation release code Django

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.