To deploy to Cloud Foundry, copy this deploy script to your hard drive. It expects to be in a directory above your apps (e.g. spring-boot-ionic-example
). It also expects your apps to be named ionic-beer
and server
.
If you don't have a Cloud Foundry account, you'll need to create one. Then install its command line tools for this script to work.
brew tap cloudfoundry/tap && brew install cf-cli
To deploy the app to an iPhone, start by plugging it into your computer. Then run the following commands to install ios-deploy/ios-sim, build the app, and run it on your device.
```
npm install -g ios-deploy ios-sim
ionic build ios --prod
cd platforms/ios/
open ionic-beer.xcodeproj
```
Select your phone as the target in Xcode and click the play button to run your app. The first time you do this, Xcode may spin for a while with a "Processing symbol files" message at the top.
**NOTE:** If you run into code signing issues, see [Ionic's deployment documentation](http://ionicframework.com/docs/intro/deploying/#ios-devices) to see how to solve.
Once you've configured your phone, computer, and Apple ID to work, you should be able to open the app and see the beer list you created. Below is how it looks on my iPhone 6s Plus.