Git上传过大文件时错误处理

问题:使用gogs配置的git服务器,git提交时提示文件超限

解决:通过配置nginx的文件上传限制

http {
log_format main ‘$remote_addr – $remote_user [$time_local] “$request” ‘
‘$status $body_bytes_sent “$http_referer” ‘
‘”$http_user_agent” “$http_x_forwarded_for”‘;

access_log /var/log/nginx/access.log main;

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
client_max_body_size 100m;     //配置限制100m

 

React Native启动 android例子的问题

Mac OX

1、没有找到 ANDROID_HOME

配置环境变量 vi ~/.bash_profile添加:

export ANDROID_HOME=/Users/liwf/Library/Android/sdk

使生效:source ~/.bash_profile

2、failed to find Build Tools revision 23.0.1

>cd  /Users/liwf/Library/Android/sdk/tools

查看:

     >android list sdk -a

   安装

    >android update sdk -a -u -t 12

3、No connected devices!

原因:没有启动虚拟机,先启动虚拟机即可 (我使用的Genymotion)

React Native试用中遇到的一些问题

MAC OS

1、问题:NSInternalInconsistencyException: bundleURL must be non-nil when not implementing loadSourceForBridge

原因:因为系统开了ss代理工具,关闭即可

2、问题:Cannot find entry file index.ios.js in any of the roots…

解决方案:
rm -rf node_modules  (删掉原来的重新来一遍即可)
   npm install
   react-native run-ios

3、问题:Could not connect to development server.  (ERROR Error watching file for changes: EMFILE)

解决:安装 brew install watchman

4、antd-mobile does not exist in the module map (react-native)

解决方法:[“import”, { “libraryName”: “antd-mobile”, “style”: “css” }]

改成:[“import”, { “libraryName”: “antd-mobile”}]

5、”:CFBundleIdentifier”, Does Not Exist

解决:react-native upgrade

6、no bundle url present

解决:(由于开了代理服务器SS),关闭SS