Deploy website

Deploy website version based on f192735962
This commit is contained in:
Kasra Bigdeli
2018-05-19 00:02:28 -07:00
parent f192735962
commit 4b80bd28aa
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -1 +0,0 @@
captainduckduck.com
+1 -1
View File
@@ -11,7 +11,7 @@
<p>They all come with pre-configured settings, however, you'll be have the option to customize the settings. For example, MySQL database uses port 3306, but you can change this port to another port if it suits your needs.</p>
<p>It is important to mention that some of these configuration parameters, might show up as environmental variables in your app settings after you deploy the app, however, their values only being used in the installing phase. i.e., changing password of MySQL through changing the PASSWORD environmental variable will not work. Instead, you should use MySQL commands to change the password. The PASSWORD environmental variable is being used to set up the original password during the installation phase.</p>
<h2><a class="anchor" aria-hidden="true" id="connecting-to-databases"></a><a href="#connecting-to-databases" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Connecting to Databases</h2>
<p>Note that since all these applications are Docker containers, you can have multiple MySQL databases on running on port 3306 without having any conflict.</p>
<p>Note that since all these applications are Docker containers, you can have multiple MySQL databases on running on port 3306 without having any conflict. If you want to connect to two different MySQL databases, from a PHP app, where both PHP and MySQLs are under the same instance of CaptainDuckDuck, you can use <code>srv-captain--mysqlappname1:3306</code> <code>srv-captain--mysqlappname2:3306</code>.</p>
<p>However, if you want to connect to your database from a remote machine (e.g. your laptop) you need to map a container port to a server port. In that case, you have to map two different ports on the server, for example:</p>
<ul>
<li>Port 1001 of the server goes to mysql-1 port 3306</li>