Push a Bundle
When your project is ready for production, push your bundle to Mobify Cloud.
To push bundle to the Mobify Cloud you must first:
Open a terminal, navigate to your Adaptive.js project folder, and run the
# Push a bundle with an optional message. grunt push --message 'Mobile 1.0.1: Refactor menu.'
Bundle messages are displayed in the Mobify Cloud. Great bundle messages communicate new features or changes contained in the bundle.
When push completes, you will see a message in your terminal.
Solutions to Common Challenges
Project Not Found
- Verify your computer is associated with your account.
package.jsonexactly matches the project slug found in your project's Mobile Web Settings page.
HTTP 401: Unauthorized
Ensure your account has permission to deploy the project.
HTTP 413: Request Entity Too Large
The size of the bundle you are pushing is too big! The maximum size for bundles
is 35 megabytes. You can check the size of a bundle by inspecting the
folder within your project.
If your project is nearing this amount it is best to proactively start taking action and reducing the bundle size:
- Check that your bundle does not contain unnecessary assets.
- Scale images to appropriate sizes.
adaptation.min.js. UI files are minified and compiled into
Once you've done this, try pushing the bundle again.
adaptive.js file is loading slowly
adaptation.min.js file is not larger than 2 megabytes. If it is
larger than 2 megabytes, it will not be gzipped by the Mobify CDN, which will
impact page speed.