Giter Site home page Giter Site logo

expo-deploy's Introduction

⚠️ Update

Expo now supports Release Channels! This script was created before that feature existed. You probably want to use them instead.

Expo Deploy

Bash script to deploy to different Expo environments.

It switches the relevant json file to be app.json before running the correct commands.

Setup

  • npm install exp -g
  • Place the deploy script in your root directory
  • Add the relevant config files as shown in this example repository
  • Add /app.json to your .gitignore.

Usage

  • Publish: ./deploy publish [environment]
  • Build: ./deploy build [environment] (builds both IPA + APK files)
  • Development: You'll want to copy the correct app file manually. E.g: cp ./config/staging.json ./app.json && react-native-scripts start. I haven't thought of a better way to do this yet.

Local Exp

It's also possible to have exp installed locally. To do this:

  • npm install exp --save-dev
  • In your package.json, call the shell script through npm scripts. This is how I do it:
    •   "publish": "chmod +x ./deploy.sh && ./deploy.sh publish $ENVIRONMENT",
        "build": "chmod +x ./deploy.sh && ./deploy.sh build $ENVIRONMENT"
      
    • Run withENVIRONMENT=staging npm run publish or ENVIRONMENT=staging npm run build

expo-deploy's People

Contributors

oliverbenns 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

Watchers

 avatar  avatar  avatar  avatar  avatar

expo-deploy's Issues

Little upgrade suggestion

Hi,

first of all I like your solution a lot, clean and simple. But would it be possible for you to modify it so you could just build android OR iOS so it can work with not-detached projects too?

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.