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: doc_source/ami-contents.rst
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,26 +20,27 @@ Amazon Machine Image (AMI) Contents for an |envfirstlongec2title|
20
20
21
21
The Amazon Machine Image (AMI) that |AC9long| uses for an |envec2| contains the following components:
22
22
23
-
* The packages listed in `Amazon Linux AMI 2017.09 Packages <https://aws.amazon.com/amazon-linux-ami/2017.09-packages/>`_ on the Amazon Linux AMI website.
23
+
* The packages listed in `Amazon Linux AMI 2018.03 Packages <https://aws.amazon.com/amazon-linux-ami/2018-03-packages/>`_ on the Amazon Linux AMI website.
24
24
* `Apache HTTP Server <http://httpd.apache.org/>`_ 2.4
25
-
* :ref:`AWS CLI <sample-aws-cli>`
26
-
* `AWS SAM Local <https://github.com/awslabs/aws-sam-local>`_
27
-
* `CoffeeScript <http://coffeescript.org>`_
28
-
* `Docker <https://www.docker.com/>`_ 17.03.2-ce
25
+
* :ref:`AWS CLI <sample-aws-cli>` 1.14.9
26
+
* `AWS SAM Local <https://github.com/awslabs/aws-sam-local>`_ 0.2.11
Copy file name to clipboardExpand all lines: doc_source/app-preview.rst
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,8 @@ and with the corresponding application code file open and active in the |AC9IDE|
118
118
119
119
This opens an application preview tab within the |env|, and then displays the application's output on the tab.
120
120
121
+
If the application preview tab displays an error or is blank, try following the troubleshooting steps in :ref:`troubleshooting-app-preview`.
122
+
121
123
To enable others to preview the running application outside of the |IDE|, see :ref:`app-preview-share`.
122
124
123
125
.. note:: If the application is not already running, you will see an error on the application preview tab. Run or restart the application, and then choose the menu bar command again.
@@ -127,7 +129,13 @@ To enable others to preview the running application outside of the |IDE|, see :r
127
129
within the |env| works only with the preceding ports and IPs, and it works with only a single port at a time.
128
130
129
131
We don't recommend sharing the URL in the application preview tab with others. (The URL displays using the format
130
-
:code:`https://ENVIRONMENT_ID.vfs.cloud9.REGION_ID.amazonaws.com/`.) This URL works only when the |IDE| for the |env| is open and the application is running in the same web browser.
132
+
:code:`https://12a34567b8cd9012345ef67abcd890e1.vfs.cloud9.us-east-2.amazonaws.com/`, where :code:`12a34567b8cd9012345ef67abcd890e1` is the ID that |AC9| assigns to the |env|,
133
+
and :code:`us-east-2` is the ID of the AWS Region for the |env|.) This URL works only when the |IDE| for the |env| is open and the application is running in the same web browser.
134
+
135
+
If you try to go to the IP of :code:`127.0.0.1`, :code:`localhost`, or :code:`0.0.0.0` by using the application preview tab
136
+
in the |IDE| or in a separate web browser tab outside of the |IDE|,
137
+
the default built-in behavior of the |AC9IDE| is that this will attempt to go to your local computer, instead of attempting to go the
138
+
instance or your own server that is connected to the |env|.
131
139
132
140
.. _app-preview-app-reload:
133
141
@@ -199,14 +207,14 @@ allow incoming application requests. Then you give the public IP address to othe
The instance ID will look similar to this: :code:`i-02ccbdf54d66e34EX`. Make a note of this instance ID.
210
+
The instance ID will look similar to this: :code:`i-12a3b456c789d0123`. Make a note of this instance ID.
203
211
204
212
* In the |IDE| for the |env|, on the menu bar, choose your user icon, and then choose :guilabel:`Manage EC2 Instance`.
205
213
206
214
.. image:: images/console-manage-instance.png
207
215
:alt:Choosing to manage the instance from the AWS Cloud9 IDE
208
216
209
-
In the |EC2| console that displays, make a note of the instance ID that displays in the :guilabel:`Instance ID` column. The instance ID will look similar to this: :code:`i-02ccbdf54d66e34EX`.
217
+
In the |EC2| console that displays, make a note of the instance ID that displays in the :guilabel:`Instance ID` column. The instance ID will look similar to this: :code:`i-12a3b456c789d0123`.
210
218
211
219
#. Get the |EC2| instance's public IP address. To get this, do one of the following:
With the application running, give to others the public IP address you noted earlier. Be sure to start the URL with the correct protocol, and add the port number if it is
327
335
not the default for that protocol (for example, :code:`http://192.0.2.0:8080/index.html` using HTTP over port 8080).
328
336
337
+
If the resulting web browser tab displays an error, or the tab is blank, try following the troubleshooting steps in :ref:`troubleshooting-app-sharing`.
338
+
329
339
.. note:: The instance's public IP address might change anytime the instance restarts. To prevent this IP address from changing, one solution is to allocate an Elastic IP address and then assign that address to the running instance. For instructions, see
330
340
:ec2-user-guide:`Allocating an Elastic IP Address <elastic-ip-addresses-eip.html#using-instance-addressing-eips-allocating>` and
331
341
:ec2-user-guide:`Associating an Elastic IP Address with a Running Instance <elastic-ip-addresses-eip.html#using-instance-addressing-eips-associating>` in the |EC2-ug|. Note also that
@@ -338,4 +348,5 @@ not the default for that protocol (for example, :code:`http://192.0.2.0:8080/ind
338
348
port, those requests might fail. Those users must use a different network that allows traffic over the requested protocol and port. For more information, see your network administrator.
339
349
340
350
We don't recommend sharing the URL in the application preview tab in the |IDE| with others. (The URL displays using the format
341
-
:code:`https://ENVIRONMENT_ID.vfs.cloud9.REGION_ID.amazonaws.com/`.) This URL works only when the |IDE| for the |env| is open and the application is running in the same web browser.
351
+
:code:`https://12a34567b8cd9012345ef67abcd890e1.vfs.cloud9.us-east-2.amazonaws.com/`, where :code:`12a34567b8cd9012345ef67abcd890e1` is the ID that |AC9| assigns to the |env|,
352
+
and :code:`us-east-2` is the ID of the AWS Region for the |env|.) This URL works only when the |IDE| for the |env| is open and the application is running in the same web browser.
Copy file name to clipboardExpand all lines: doc_source/build-run-debug.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,9 +162,9 @@ Change a Built-In Runner
162
162
163
163
#. On the menu bar, choose :guilabel:`Run, Run With`, and then choose the built-in runner you want to change.
164
164
#. Stop the runner from trying to run your code by choosing, :guilabel:`Stop` on the run configuration tab that displays.
165
-
#. Choose :guilabel:`Runner: RUNNER_NAME`, where :guilabel:`RUNNER_NAME` is the name of the runner you want to change, and then choose :guilabel:`Edit Runner`.
166
-
#. On the :guilabel:`RUNNER_NAME.run` tab that is displayed, change the runner's current definition. See :ref:`build-run-debug-define-builder-runner`.
167
-
#. Choose :guilabel:`File, Save As`. Save the file with the same name (:guilabel:`RUNNER_NAME.run`) in the :file:`ENVIRONMENT_NAME/.c9/runners` directory, where :file:`ENVIRONMENT_NAME` is
165
+
#. Choose :guilabel:`Runner: My Runner`, where :guilabel:`My Runner` is the name of the runner you want to change, and then choose :guilabel:`Edit Runner`.
166
+
#. On the :guilabel:`My Runner.run` tab that is displayed, change the runner's current definition. See :ref:`build-run-debug-define-builder-runner`.
167
+
#. Choose :guilabel:`File, Save As`. Save the file with the same name (:guilabel:`My Runner.run`) in the :file:`my-environment/.c9/runners` directory, where :file:`my-environment` is
168
168
the name of your |envfirst|.
169
169
170
170
.. note:: Any changes you make to a built-in runner apply only to the |env| you made those changes in. To apply your changes to a separate |env|,
@@ -202,8 +202,8 @@ Create a Builder or Runner
202
202
that is displayed, define the builder or runner.
203
203
See :ref:`build-run-debug-define-builder-runner`.
204
204
#. After you define the builder or runner, choose :guilabel:`File, Save As`. For a builder, save the file with the :file:`.build` extension in the
205
-
:file:`ENVIRONMENT_NAME/.c9/builders` directory, where :file:`ENVIRONMENT_NAME` is the name of your |env|. For a runner, save the file with the
206
-
:file:`.run` file extension in the :file:`ENVIRONMENT_NAME/.c9/runners` directory, where :file:`ENVIRONMENT_NAME`
205
+
:file:`my-environment/.c9/builders` directory, where :file:`my-environment` is the name of your |env|. For a runner, save the file with the
206
+
:file:`.run` file extension in the :file:`my-environment/.c9/runnders` directory, where :file:`my-environment`
207
207
is the name of your |env|.
208
208
The file name you specify will be the name that is displayed on the :guilabel:`Run, Build System` menu (for a builder) or the
209
209
:guilabel:`Run, Run With` menu (for a runner). Therefore, unless you specify a different file name,
@@ -247,7 +247,7 @@ For a runner, start with this code.
0 commit comments