Mercurial > hg > nginx-site
comparison xml/en/docs/howto_setup_development_environment_on_ec2.xml @ 461:6135f3c95bf6
Unified markup for lists.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 27 Mar 2012 14:30:18 +0000 |
parents | 245167685006 |
children | 0e55c9a48da9 |
comparison
equal
deleted
inserted
replaced
460:d645a7e0c229 | 461:6135f3c95bf6 |
---|---|
17 prepare your virtual machine and nginx configuration. | 17 prepare your virtual machine and nginx configuration. |
18 </para> | 18 </para> |
19 | 19 |
20 <para> | 20 <para> |
21 To set up a development environment: | 21 To set up a development environment: |
22 <list> | 22 <list type="bullet"> |
23 <item> | 23 <listitem> |
24 Follow the | 24 Follow the |
25 <link url="http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/Welcome.html"> | 25 <link url="http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/Welcome.html"> |
26 Get Started with EC2</link> guide to sign up to AWS and | 26 Get Started with EC2</link> guide to sign up to AWS and |
27 launch your EC2 instance. Only Amazon Linux is supported, so please | 27 launch your EC2 instance. Only Amazon Linux is supported, so please |
28 choose either “Basic 32-bit Amazon Linux AMI” or | 28 choose either “Basic 32-bit Amazon Linux AMI” or |
29 “Basic 64-bit Amazon Linux AMI” for an AMI. When configuring | 29 “Basic 64-bit Amazon Linux AMI” for an AMI. When configuring |
30 the firewall rules, it is necessary to add a rule to accept web | 30 the firewall rules, it is necessary to add a rule to accept web |
31 traffic on port 80. | 31 traffic on port 80. |
32 </item> | 32 </listitem> |
33 | 33 |
34 <item> | 34 <listitem> |
35 As soon as the new instance is launched, log in to it and | 35 As soon as the new instance is launched, log in to it and |
36 download <literal>aws_nginx_setup.sh</literal> script with the | 36 download <literal>aws_nginx_setup.sh</literal> script with the |
37 following command: | 37 following command: |
38 <programlisting> | 38 <programlisting> |
39 wget http://nginx.org/download/aws_nginx_setup.sh | 39 wget http://nginx.org/download/aws_nginx_setup.sh |
40 </programlisting> | 40 </programlisting> |
41 then run the script with root privileges: | 41 then run the script with root privileges: |
42 <programlisting> | 42 <programlisting> |
43 sudo sh ./aws_nginx_setup.sh | 43 sudo sh ./aws_nginx_setup.sh |
44 </programlisting> | 44 </programlisting> |
45 </item> | 45 </listitem> |
46 | 46 |
47 <item> | 47 <listitem> |
48 You will be asked to select what components to install. Currently | 48 You will be asked to select what components to install. Currently |
49 it is possible to choose Django, Pyramid, Ruby on Rails or PHP | 49 it is possible to choose Django, Pyramid, Ruby on Rails or PHP |
50 development environment. After you have selected the necessary | 50 development environment. After you have selected the necessary |
51 component, the script will automatically prepare its configuration | 51 component, the script will automatically prepare its configuration |
52 for use with nginx. There will be a separate user created too, | 52 for use with nginx. There will be a separate user created too, |
53 and then a sample web application is started to ensure everything | 53 and then a sample web application is started to ensure everything |
54 is working correctly. | 54 is working correctly. |
55 </item> | 55 </listitem> |
56 | 56 |
57 <item> | 57 <listitem> |
58 After the installation completes and the web application is installed | 58 After the installation completes and the web application is installed |
59 in a subdirectory inside <path>/var/www</path>, the script will print how to | 59 in a subdirectory inside <path>/var/www</path>, the script will print how to |
60 start/stop sample application. For example, the Rails application will | 60 start/stop sample application. For example, the Rails application will |
61 reside in <path>/var/www/rails</path>, and Rails specific part of nginx | 61 reside in <path>/var/www/rails</path>, and Rails specific part of nginx |
62 configuration will be in <path>/etc/nginx/conf.d/rails.conf</path>. | 62 configuration will be in <path>/etc/nginx/conf.d/rails.conf</path>. |
63 Installed application and configuration files can be used as a basis for | 63 Installed application and configuration files can be used as a basis for |
64 further development. | 64 further development. |
65 </item> | 65 </listitem> |
66 </list> | 66 </list> |
67 </para> | 67 </para> |
68 | 68 |
69 </section> | 69 </section> |
70 | 70 |