Publishing Flow
Shipcode offers a two-step publishing process. Once you've made changes to your application, the first step is to promote the changes to the Staging environment. Staging is a pre-production environment where you can privately test your changes for both web and native.
Once the changes have been approved on Staging, they can be promoted to the Production environment. Once this takes place, the updates will be available on your live sites and apps.
Configuring the Publishing Environments
Configuring the Publishing Environments requires the Administrator role.
You can configure the Staging and Production environments within the Project Settings menu:
- Click on your account avatar in the Top Bar
- Click "Project Settings"
- Click "Publishing Environments"
- Click "Edit Environments"
- Click on either Staging or Production
- Make your desired changes
- Click "Save"
The first change you can make is selecting which Data Environment is utilized by Staging and Production. Data Environments give you the ability to register variables that can have different values for different environments. For example, you may wish to point an API to different URLs for Staging and Production. Refer to Data Environments for more information.
If your app is using a custom domain for staging or production, you can provide the domain name so that Shipcode's preview links point to the correct location. To change the domain, enable the "Use custom URL" checkbox and then provide your domain. Un-check the "Use custom URL" checkbox to use the Shipcode-provided domain.
Promoting to Staging
Promoting content requires the Administrator or Publisher role.
From the Top Bar
- Click the "Promote" button in the Top Bar
- Optionally provide "Name" and "Notes" to identify the contents of the release
- Click "Promote" in the modal
From the Version Panel
- Open the Version panel from the Left Sidebar
- Click the menu (three dot) icon next to the desired snapshot
- Click "Promote"
- Optionally provide "Name" and "Notes" to identify the contents of the release
- Click "Promote" in the modal
Viewing Changes on Staging
After promotion, the confirmation modal will contain a "Preview" link. Click on the link to view the QR code for your project. Click on the QR code to navigate to the web staging site. Scan the QR code with your Shipcode App to view the staging version of your native app.
You can also access the preview link and QR code at any time from the Versions Panel:
- Open the Versions Panel in the Left Sidebar
- Click on the "Publishing" tab
- Next to the desired release (indicated with a "Staging" badge), click the menu (three dot) icon
- Click "Preview on Web" to view the staging site
- Click "Preview on App" to view the QR code to scan with your Shipcode App
Promoting to Production
Promoting content requires the Administrator or Publisher role.
- Open the Versions Panel in the Left Sidebar
- Click on the "Publishing" tab
- Next to the desired release (indicated with a "Staging" badge), click the menu (three dot) icon
- Click "Promote"
- Optionally provide "Name" and "Notes" to identify the contents of the release
- Click "Promote" in the modal
