修改访问端口,避免和其他组冲突,同时修改main.py,主页显示 English Pal(SPM-Spring2021-2599-张小飞201831990641)
parent
5c4810aec1
commit
10fd9afa6f
|
@ -13,7 +13,7 @@ pipeline {
|
|||
echo 'Building..'
|
||||
sh 'sudo docker build -t englishpal .'
|
||||
sh 'sudo docker stop $(docker ps -aq)'
|
||||
sh 'sudo docker run -d -p 91:80 -v /var/lib/jenkins/workspace/EnglishPal_Pipeline_master/app/static/frequency:/app/static/frequency -t englishpal'
|
||||
sh 'sudo docker run -d -p 5000:80 -v /var/lib/jenkins/workspace/EnglishPal_Pipeline_master/app/static/frequency:/app/static/frequency -t englishpal'
|
||||
}
|
||||
}
|
||||
stage('TestIt') {
|
||||
|
|
|
@ -228,7 +228,7 @@ def mainpage():
|
|||
</head>
|
||||
<body>
|
||||
'''
|
||||
page += '<p><b><font size="+3" color="red">English Pal - Learn English in a smart way!</font></b></p>'
|
||||
page += '<p><b><font size="+3" color="red">English Pal(SPM-Spring2021-2599-张小飞201831990641) - Learn English in a smart way!</font></b></p>'
|
||||
if session.get('logged_in'):
|
||||
page += ' <a href="%s">%s</a></p>\n' % (session['username'], session['username'])
|
||||
else:
|
||||
|
|
|
@ -10,7 +10,7 @@ import string
|
|||
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
|
||||
driver.implicitly_wait(10)
|
||||
|
||||
HOME_PAGE = 'http://121.4.94.30:91/'
|
||||
HOME_PAGE = 'http://121.4.94.30:5000/'
|
||||
|
||||
|
||||
def has_punctuation(s):
|
||||
|
|
|
@ -10,7 +10,7 @@ import string
|
|||
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
|
||||
driver.implicitly_wait(10)
|
||||
|
||||
HOME_PAGE = 'http://121.4.94.30:91/'
|
||||
HOME_PAGE = 'http://121.4.94.30:5000/'
|
||||
|
||||
|
||||
def has_punctuation(s):
|
||||
|
|
|
@ -9,7 +9,7 @@ import random, string
|
|||
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
|
||||
driver.implicitly_wait(10)
|
||||
|
||||
HOME_PAGE = 'http://121.4.94.30:91/'
|
||||
HOME_PAGE = 'http://121.4.94.30:5000/'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import random, string
|
|||
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
|
||||
driver.implicitly_wait(10)
|
||||
|
||||
HOME_PAGE = 'http://121.4.94.30:91/'
|
||||
HOME_PAGE = 'http://121.4.94.30:5000/'
|
||||
|
||||
def test_login_security_fix():
|
||||
try:
|
||||
|
|
|
@ -9,7 +9,7 @@ import random, string, time
|
|||
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
|
||||
driver.implicitly_wait(10)
|
||||
|
||||
HOME_PAGE = 'http://121.4.94.30:91/'
|
||||
HOME_PAGE = 'http://121.4.94.30:5000/'
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import random, string
|
|||
driver = webdriver.Remote('http://localhost:4444/wd/hub', DesiredCapabilities.CHROME)
|
||||
driver.implicitly_wait(10)
|
||||
|
||||
HOME_PAGE = 'http://121.4.94.30:91/'
|
||||
HOME_PAGE = 'http://121.4.94.30:5000/'
|
||||
|
||||
|
||||
|
||||
|
|
BIN
演示视频zhangxf.mp4
BIN
演示视频zhangxf.mp4
Binary file not shown.
Loading…
Reference in New Issue