Giter Site home page Giter Site logo

Comments (9)

lisong avatar lisong commented on May 15, 2024

you can add another option like qiniu,not instead,then ask a pull request for others who need use s3 two. thanks.

from code-push-server.

devhyunjae avatar devhyunjae commented on May 15, 2024

OK, I'll try to make an option for storageType: "s3"

from code-push-server.

hfyeh avatar hfyeh commented on May 15, 2024

@devhyunjae @lisong :

I use S3, when I code-push, it shows the error message below. I found I don't know where to put my credential in config.js file for S3, would you help me? Thank you very much!

image

from code-push-server.

lisong avatar lisong commented on May 15, 2024

if you are use npm i code-push-server -g, it suggest download the config file ,then use CONFIG_FILE=/path/to/config.js code-push-server, startup the server. if you use source code then config in config/config.js

from code-push-server.

hfyeh avatar hfyeh commented on May 15, 2024

I use source code and I do edit my config.js, it looks like this

image

image

I don't know where could I put my s3 id and key.

from code-push-server.

devhyunjae avatar devhyunjae commented on May 15, 2024

@hfyeh
You need to setup AWS credentials. These are not related to code-push-server config.js.
The easiest way is to set these two as env variable.

AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY

http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-environment.html

from code-push-server.

lisong avatar lisong commented on May 15, 2024

@devhyunjae maybe it more better set in config files.

from code-push-server.

hfyeh avatar hfyeh commented on May 15, 2024

Thank you both.

I export it as environment variable and restart server.

When I use pm2, I still get same error message.

But if I use bin/www, it woked. Seems pm2 cannot read my environment variable.

from code-push-server.

lisong avatar lisong commented on May 15, 2024

process.json,you can set env in pm2 file,or use the latest commit in master, then config it in config.js

from code-push-server.

Related Issues (20)

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.