Coder Social home page Coder Social logo

code-push-web's Introduction

@deprecated

CodePush Web source

CodePush Web is a CodePush Server's web client. it's will more friendly then code-push-cli

INSTALL

$ cd /path/to/code-push-web
$ npm install

CONFIGURE

$ vim ./src/config #change URL to production

RUN DEV

$ npm start

BUILD AND RUN IN PRODUCTION

$ cd /path/to/code-push-web
$ npm run build -- --release
$ cd ./build
$ npm install
$ node ./server.js

License

MIT License read

code-push-web's People

Contributors

lisong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

code-push-web's Issues

无法做任何操作

你好,我已经在服务器上架好,但无法做任何操作,请问是什么原因?
image

跨域无法正常运转

点击注册按钮输入邮箱无反应,12302端口为code-push-server端口,12303为code-push-web端口
//真实ip隐藏掉了
Console显示:
Fetch API cannot load http://我的ip:12302/users/[email protected]. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://我的ip:12303' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

网上查询到关闭网络安全的命令(Windows):
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
关闭后可以正常访问。
还请大神解答,谢谢!

code-push-web 按照文档编译好以后就报下面这个错误

root@iZ23vlpts7xZ build]# node ./server.js
module.js:540
throw err;
^

Error: Cannot find module 'source-map-support'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (/opt/codepush/build/server.js:1:63)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
[root@iZ23vlpts7xZ build]# ule.require (module.js:587:17)
-bash: 未预期的符号 module.js:587:17' 附近有语法错误 [root@iZ23vlpts7xZ build]# at require (internal/module.js:11:18) -bash: 未预期的符号 (' 附近有语法错误
[root@iZ23vlpts7xZ build]# at Object. (/opt/codepush/build/server.js:1:63)
-bash: 未预期的符号 (' 附近有语法错误 [root@iZ23vlpts7xZ build]# at Module._compile (module.js:643:30) -bash: 未预期的符号 (' 附近有语法错误

最新版编译之后,首页的登录之类链接没变

我编译之后搭建起来,发现首页无法正确显示链接,包括 登录、注册、应用等。我通过手动修改浏览器链接可以访问登录页(后面手动+ /login),但是点击登录无响应。这个是还未开发完整吗?

点击导航栏所有按钮都没有效果

  1. 搭建了 web 的服务 3001 端口进入可以看到主页 但是导航栏所有按钮点击都没有效果
    发现 code push server 点击登录按钮才能跳转到对应 web 页面上 应该是前端的问题

  2. 然后在注册的时候 发现填完邮箱 下一步无法点击 。。

这套代码有很多问题呀

Rest URL不能后期配置
用npm安装的server不能跨域
build的时候满屏的warning,废弃用法
有时候某名其妙的错误
多年没有更新代码了
有问题也不回复

怎么在docker里面通过环境变量设置URL

设置环境变量不生效
export const common = {
api: {
URL: process.env.SERVER_URL || http://update.aa.com, // production code-push-server address
devURL: process.env.SERVER_URL || http://update.aa.com, // development code-push-server address
},
};
process.env能读到,但是网页上不生效

TypeError: Cannot read property 'length' of null

TypeError: Cannot read property 'length' of null
getShortTypeString
webpack:///~/redux-devtools-inspector/lib/tabs/getItemString.js:54
开始好好的,突然就出来个这,电脑上浏览器都不行,手机可以打开

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.