Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Auto Web Page Publish
AWPP为了更方便的AWP页面发布而生。
npm install -g awpp
或者
tnpm install -g awpp
AWP pages publish automation.
Usage: /usr/local/share/npm/bin/awpp files[directory]...
Options:
-p, --project Project Name
-g, --group Project Group
-e, --env Environment(waptest|wapa|m) for publishment.
-o, --operator Project Operator
--did, --dailyid Project Daily WebAppId
--oid, --onlineid Project Online WebAppId
--dtoken, --dailytoken Project Daily Operator Token
--otoken, --onlinetoken Project Online Operator Token
--pub, --ispub Is Publish While Performance Test Passed
--isautopub, --autopub Is AutoPublish While TMS Updated
--autoparse, --isautoparse Auto Parse
--needperformtest, --needperform Need Performance Test
--delversion, --delversionifexist Delete Version If Exist
--notusetoken, --notoken Do not Use Token.
Must define at least one template or directory.
awpp ./search/index.html -p hotel -e waptest
-p 指名项目名称,通常为AWP平台地址的二级目录名
-e 指名要发布的环境,waptest(日常),wapa(预发),m(线上)
-g 指名项目所在组(可选)
-o 指名接口的操作者(可选)
--did 指名项目所在应用的日常ID(可选)
--oid 指名项目所在应用的线上ID(可选)
--dtoken 指名操作者的日常TOKEN(可选)
--otoken 指名操作者的线上TOKEN(可选)
--pub 指名是否在性能测试通过后自动发布(可选)
--autopub 指明页面是否在TMS更新后采用自动发布(可选)
--autoparse 是否提取资源并添加版本号,预发可设置(可选)
--needperform 是否需要性能测试(可选)
--delversion 如果发布单存在则删除后并生成新的(可选)
--notoken 指明是否使用兼容的旧方式进行发布(可选)
需要注意的是,线上发布不会自动提交发布单,需要暂时手动在平台进行验收后发布(或者性能测试通过后自动发布);线上部署目前对IP有限制,需要在线上机房所在的IP段内才能调用,因此建议线上部署使用b.ued.taobao.net(10.232.135.52)做跳板机进行操作。
上述示例表明将当前目录下search
子目录中的index.html
文件发布到日常环境的hotel
目录中。对应的AWP路径规则为:项目名称+文件路径
(如hotel/search/index.html
),所以请注意执行命令时所在的目录环境。
AWP平台目前无法批量导入文件或者批量对文件进行保存、提交发布单,甚至性能验收的操作,因此对于一个项目而言,部署一套环境或者项目发布上线耗时往往很长(需要手动导入页面、保存、提交发布单、提交性能验收并等待性能验收通过后执行发布操作),在快速迭代以及发布频繁的情况下,生产力极其低下,AWPP就是为了解放页面发布的生产力而生。
FAQs
auto web page publish
The npm package awpp receives a total of 3 weekly downloads. As such, awpp popularity was classified as not popular.
We found that awpp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.