Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
regManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
regManage
Commits
292383ff
Commit
292383ff
authored
May 20, 2020
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
300273c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
交接.txt
doc/交接.txt
+13
-11
No files found.
doc/交接.txt
View file @
292383ff
安装依赖
安装依赖
...
...
@@ -2,13 +2,13 @@
1、npm install //安装依赖
2、npm install -g ionic //安装ionic命令
3、npm install -g cordova //安装Cordova打包apk工具命令
4、cordova pla
t
form add android //添加android平台
4、cordova plaform add android //添加android平台
5、npm install -g cordova-hot-code-push-cli //下载热更新命令工具
6、ionic serve //启动项目
跳板机 180.168.156.211 4123 root/Cesgroup123
ssh -p 4123 root@180.168.156.211 登录命令
scp -r -P 4123 www/ root@180.168.156.211:/root 上传文件命令
ps:进去当前文件夹目录下运行
scp -r -P 4123 www/ root@180.168.156.211:/root 上传文件命令
内网服务器:10.250.199.29 root/cesgroup
ssh -p 22 root@10.250.199.29
...
...
@@ -16,8 +16,6 @@ scp -r www/ root@10.250.199.29:/usr/local/nginx/html 上传文件命令
服务器上面的前端代码目录 /usr/local/nginx/www
查看 nginx配置:vi nginx.conf
打包部署
1、ionic build --prod
2、cordova-hcp build
...
...
@@ -25,13 +23,18 @@ scp -r www/ root@10.250.199.29:/usr/local/nginx/html 上传文件命令
4、cordova-hcp build
android平台
android平台
--生产包
1、cordova platform add android //添加Android平台,即生成android代码
2、cordova build android --release 目录/platform/android/app/build/output/release/app-unrelease.apk //生成android生产包,将html代码打包进入apk中
3、2步骤有报错就把platform里面android导入到android studio 如果出现version版本问题。。。
4、拖到一个目录底下 => 签名命令:jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk shreg
3、签名命令:jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk shreg
密码 shregshreg 将apk签名
android ---debug包
1、电脑通过数据线连接手机,手机打开开发者模式,
2、ionic cordova run android
直接打debug包,装到手机上面,打开webviewdebug软件,点击【启动调试】,看到自己的app,点击【inspect】,进入调试;
13321810809
qweasd123
\ No newline at end of file
13321810809
qweasd123
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment