$ ionic serve // Internal server to run and test your pages
$ ionic build ios
$ ionic emulate ios // with the other command above, emulates running the page in the iphone
To use it along with your Adobe Phonegap build account (so you don’t have to build locally)
- Follow the instructions here to setup your phonegap acct
- $phonegap create [your app dir] [your app name]
- $cd [your app dir]
- copy the www files from your ionic app into the www of this phonegap dir (follow the instructions on their website to build a starter project)
- $phonegap remote build ios
Update: looks like things have gotten easier, and you don’t have to jump back and forth between phonegap and ionic projects, all you have to do is:
1) create an app at https://apps.ionic.io/
2) in your command line:
$ ionic start myApp io
$ cd myApp
$ionic login
$ionic upload
Setting up sass
$ ionic setup sass
if you run into an error message, you may have to reinstall the following packages (in that order):
$ sudo npm install node-sass@1.0.3
$ sudo npm install gulp-sass