@@ -149,38 +149,43 @@ should be done via one of the following methods:
149
149
150
150
In your Portainer GUI, go to the container view and select the running
151
151
rails container from your Zammad stack. Click on the **Exec Console **
152
- icon in the "Quick Actions" column.
152
+ icon in the "Quick Actions" column and on the ** Connect ** button .
153
153
154
154
.. figure :: /images/install/docker-compose/portainer/portainer-exec-console.png
155
155
:alt:
156
156
:width: 70%
157
157
158
- In the "Execute" dialog, select the "rails console" entry point as you
159
- can see in the screenshot:
158
+ Run the interactive rails console by executing:
160
159
161
- .. figure :: /images/install/docker-compose/portainer/portainer-execute-command.png
162
- :alt:
163
- :width: 70%
160
+ .. code-block ::
161
+
162
+ bundle exec rails c
163
+
164
+ Directly execute a specific command:
165
+
166
+ .. code-block ::
167
+
168
+ bundle exec rails r '...your rails command here...'
164
169
165
170
.. tab :: Via console
166
171
167
172
Directly execute a specific command:
168
173
169
174
.. code-block :: sh
170
175
171
- docker compose run --rm zammad-railsserver rails r ' ...your rails command here...'
176
+ docker compose run --rm zammad-railsserver bundle exec rails r ' ...your rails command here...'
172
177
173
- Run the interactive rails console to manually enter Rails commands:
178
+ Run the interactive rails console to manually enter rails commands:
174
179
175
180
.. code-block :: sh
176
181
177
- docker compose run --rm zammad-railsserver rails c
182
+ docker compose run --rm zammad-railsserver bundle exec rails c
178
183
179
- Via ``docker exec ``:
184
+ Via ``docker compose exec ``:
180
185
181
186
.. code-block :: sh
182
187
183
- docker exec zammad-docker-compose-zammad- railsserver-1 /docker-entrypoint.sh rails r ' ...your rails command here...'
188
+ docker compose exec zammad-railsserver bundle exec rails r ' ...your rails command here...'
184
189
185
190
If you need to retrieve information from the rails server, you can place
186
191
for example ``pp `` (pretty print) in front of your rails command. This
0 commit comments