Skip to content

Instantly share code, notes, and snippets.

@javimosch
Created September 13, 2016 23:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save javimosch/cce60728a1e3edf66daae7b0f225cea0 to your computer and use it in GitHub Desktop.
Save javimosch/cce60728a1e3edf66daae7b0f225cea0 to your computer and use it in GitHub Desktop.
Cloud9 Free VM (2048mb Storage) + Android Cordova Ionic Compiler
#vm machine needs nodejs
#download sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
rm android-sdk_r24.2-linux.tgz
mv android-sdk-linux/ android
#install essential sdk components
~/workspace/android/tools/android update sdk -u --all --filter 2,4,168
#install enviroment dependencies
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1
#install ionic
npm install -g cordova ionic@beta
cd ~/workspace
#free some space (you may need to make more of this)
sudo rm -r /home/ubuntu/.gradle/caches/*
sudo rm -r /var/cache/*
#create demo app
ionic start myApp tabs
cd ~/workspace/myApp
#install hot push stuff
cordova plugin add cordova-hot-code-push-plugin
cordova plugin add cordova-hot-code-push-local-dev-addon
npm install -g cordova-hot-code-push-cli
#repeat: you may need to install dependencies again
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1
#you my need to free space again
#do ionic build android somewhere here
@javimosch
Copy link
Author

A more detailed article about this can be found here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment