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: Chapters/IcebergIntro/StartedWithIceberg.pillar
+18-5Lines changed: 18 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -184,16 +184,26 @@ Now you can push your changes and versions to the remote repository using the ""
184
184
185
185
+Once you pushed you changes to the remote repository.>file://figures/S15-PushedFromReport.png|width=75|label=PushedFromReport+
186
186
187
-
!!!Configuring Pharo to commit in HTTPS/SSH
187
+
!!!Configuring Pharo to commit in HTTPS/SSH
188
188
@sec:Configure
189
189
190
-
Versioning code is just the first part of making sure that you and other developers can reload your code. We will now describe how to configure Pharo to automatically connect to be able to publish to github. In the next section we will describe how to create a baseline (a kind of map) to reload your application.
190
+
We will now describe how to automatically configure Pharo to connect to github or other git related services.
191
+
In the next section, we will describe how to create a baseline (a kind of map of your application and its package).
192
+
A baseline will make sure that you can reload your application and all its packages.
191
193
194
+
!!!! Startup actions
195
+
Pharo supports startup actions. Each time you will launch Pharo, Pharo will load some startup scripts and execute them. Basically all the file finishing by ==.st== located in your Pharo preferences folder will be executed.
196
+
Some actions can be executed only once and others everytime. You can read more on this in the ==StartupPreferencesLoader== class.
192
197
193
-
With recent version of github, you should use a token to connect using HTTPS to be able to commit to your repository.
198
+
199
+
With recent version of github, to connect in HTTPS you should use a token.
194
200
Now you can configure Pharo to store your token as well your github account authentification.
195
201
In addition you can configure Pharo to point to your private and public SSH key as follows:
196
202
203
+
The following script should be placed in a ==.st== in your preferences folder (see below how to find it)
204
+
and it will automatically configure Iceberg to connect to your accounts. Note that the first action of the script is to hide the Pharo logo.
205
+
This way you can see if the startup script was executed.
You should place this file in the preference folder that depends on your OS.
228
-
You can find this place by using the ==Startup== menu. Note that you can configure this
229
-
for all or one specific version of Pharo.
238
+
You can find this folder by using the ==System== menu and its ==Startup/Version Preferences folder== item.
239
+
To get the path of the folder, execute ==self fullName== in the inspector opened by the menu item. You should then place
240
+
the script in file named ==xxx.st==.
241
+
230
242
231
243
232
244
!!! Defining a ==BaselineOf==
245
+
Versioning code is just the first part of making sure that you and other developers can reload your code.
233
246
We describe now how to define a ''Baseline'': a project map that you will use to define the dependencies within your project and its dependencies on other projects.
0 commit comments