You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _pages/refresh_builds.md
+56-1Lines changed: 56 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Use this process to refresh a public version or build internally.
65
65
66
66
2. Verify that the commits on the Pantheon UI all match for stage and prod. That means that you pushed all of the latest files that resulted from your last build.
67
67
68
-
## Set up local build
68
+
## Set up local build on MacOS
69
69
70
70
Make sure you are connected to the VPN and have [Homebrew](https://brew.sh/) installed before completing the following steps to build locally:
71
71
@@ -122,6 +122,61 @@ Make sure you are connected to the VPN and have [Homebrew](https://brew.sh/) ins
122
122
123
123
Pantheon updates automatically and matches the commit number. If Pantheon does not update automatically, you can manually refresh individual books.
124
124
125
+
## Set up local build on Linux
126
+
127
+
Make sure you are connected to the VPN before completing the following steps to build locally:
128
+
129
+
1. Download the build script to a folder of your choice from the master branch at:
2. Change to your chosen directory. For example, the following command switches to the _Documents_ folder:
136
+
137
+
```
138
+
cd Documents
139
+
```
140
+
141
+
3. Open the script with the text editor of your choice.
142
+
143
+
4. Change every instance of `gsed` to `sed` and save the file.
144
+
145
+
5. Make the script executable by running the following command:
146
+
147
+
```
148
+
chmod +x acm_sync_asciidoc.sh
149
+
```
150
+
151
+
6. Add your SSH key to your GitLab account. You can find the link to GitLab on Rover Apps. If you have already set up your GitHub account, you have a SSH key. To find it, see [Checking for existing SSH keys](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys). If you need to create a new key, see [Generating a new SSH key](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent).
152
+
153
+
Then, complete the following steps to use your SSH key for your GitLab account:
154
+
- Copy the key.
155
+
- Open GitLab.
156
+
- Open your profile.
157
+
- Select **SSH Keys** in the left nav.
158
+
- Paste the key and select **Add key**.
159
+
160
+
7. Run the file with the following command to build 2.9:
161
+
162
+
```
163
+
./acm_sync_asciidoc.sh 2.9 2.9_stage
164
+
```
165
+
166
+
**Note:** The first number is the GitLab branch number (corresponds to our release number). The second number is our GitHub branch. Both prod and stage go to the same GitLab branch.
167
+
168
+
8. When running the script for the first time after adding your SSH key to GitLab, you might receive an error resembling the following message:
169
+
170
+
```
171
+
The authenticity of host can't be established.
172
+
Are you sure you want to continue connecting (yes/no/[fingerprint])?
173
+
```
174
+
175
+
- Enter `yes` and continue.
176
+
- You might receive an access rights error message. Ignore the message and run the script again. If you have the correct access rights, the script runs successfully. If not, contact your manager to gain access rights.
177
+
178
+
Pantheon updates automatically and matches the commit number. If Pantheon does not update automatically, you can manually refresh individual books.
179
+
125
180
## Resolve error `zsh: permission denied`
126
181
127
182
Running step 7 from the [Set up local build](#set-up-local-build) topic results in the error `zsh: permission denied` if the correct permissions are not set up. To solve the issue, complete the following steps:
0 commit comments