-
Notifications
You must be signed in to change notification settings - Fork 1
Release a new version to production
Daniel Rosenberg edited this page Dec 16, 2015
·
24 revisions
We do a production release by promoting a version from UAT environment:
From the UAT box: ##Push binaries to a temp area
root@lgdev1:/# scp -rp /opt/littlegenius/app [email protected]:/opt/littlegenius/new
From the Prod box (perform these steps as quick as possible to minimize down time):
- Stop the process
root# service littlegenius stop
- Check if process is stopped
root# ps -ef |grep node
.
If ok:
root@prod:/#cd /opt/littlegenius
root@prod:/# mv app app.old
root@prod:/# mv new app
##Restart littlegenius
root@prod:/# nohup sudo service littlegenius start
root@prod:/# nohup sudo service littlegenius start
If change of config, Reconfig from dev box or prod?:
- Check process started
root@prod:/# ps -ef |grep node
- Check you can login on http://app.littlegenius.io/login
- Checkout a cleaned labeled version or pull from a previous release repo.
- Build the client in the app directory:
npm run ios-prd
- Open XCode path is under the directory: lgen/app/.meteor/local/cordova-build/platforms/ios/Little Genius.xcodeproj e.g. /Users/dan/DEV/PRD/lgen/app/.meteor/local/cordova-build/platforms/ios/Little Genius.xcodeproj (best is to open from Finder as XCode cannot open hidden directory such as .meteor)
- check that you can connect to production using at least the emulator (and better a real iOS device)
- Run the app on play with it.
- if OK, set Enable BitCode to No in build settings
- See Build on Android.
- Cd in the app directory
- using the right .keystore (ask Daniel or Terence), run ./build-android.sh (Note the build number need to incremented as well...in mobile-config.js and config.xml)
- upload APK to Google Play store