+

Search Tips   |   Advanced Search

Build and deploy in MobileFirst Studio

After creating the IBM MobileFirst project, we build the application and deploy it to MobileFirst Server to run and test it.

In Develop hybrid and web applications and Develop native applications, we learned the basics of creating and working with the projects in MobileFirst Studio. Here is an overview of the process for building these projects, deploying them to an instance of MobileFirst Server, and running them.

During development, to build and deploy the application, you right-click the application or an environment in the Project Explorer view of MobileFirst Studio, select Run As from the menu, and then select one of its options.

Building a MobileFirst application transforms the JavaScript, HTML, and CSS code into a mobile application for the specified environment, such as iOS or Android. The build process produces several elements:

For more information about the iOS, Android, BlackBerry, and Windows Phone development environments, see Get Started page.

The generated native project depends on the target environment:

The resulting files are stored in the MobileFirst Studio project hierarchy in...

...with the following naming conventions:

Only the latest build is contained in the project_name\bin directory at any time. If we create multiple builds for different target servers for deployment using the operations console, the supplied Ant tasks, or the Server Configuration Tool, deploy them after each build operation because the next build overwrites the existing files.

We can modify the generated native projects if, for example, to add native code or Cordova plug-ins to the application. If we modify the HTML, JavaScript, CSS, the application descriptor file, or any application resources, rebuild the environment using the appropriate "Run As > Build" command to update the MobileFirst application file (.wlapp) and the native project.

After the build of the application completes, it is deployed or not deployed depending on which Run As command we used:


Parent topic: Develop MobileFirst applications