comparison website/src/hosting.html.luan @ 1748:c7d79ba1c476

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 29 Dec 2022 12:46:36 -0700
parents 4b56eff90040
children f44dcb3fedf7
comparison
equal deleted inserted replaced
1747:2fbca5c84422 1748:c7d79ba1c476
27 <p>Start by creating an empty working directory. In this working directory, create a sub-directory called <b>src</b>. This will contain the website. Now in the working directory, make shell script called <b>serve.sh</b> containing:</p> 27 <p>Start by creating an empty working directory. In this working directory, create a sub-directory called <b>src</b>. This will contain the website. Now in the working directory, make shell script called <b>serve.sh</b> containing:</p>
28 <pre> 28 <pre>
29 luan luan:http/serve.luan src 29 luan luan:http/serve.luan src
30 </pre> 30 </pre>
31 31
32 <p>Run this script and go to <a href="http://localhost:8080/">http://localhost:8080/</a> in your browser. You should see the empty <b>src</b> directory. Now put some HTML file in <b>src</b>. You should see it in the browser. If you click on the HTML file, it should render. If you want HTML for the home page, use <b>index.html</b>. To use Luan to generate HTML, use whatever.html.luan as described the <a href="tutorial.html">Luan tutorial</a>.</p> 32 <p>Run this script and go to <a href="http://localhost:8080/">http://localhost:8080/</a> in your browser. You should see the empty <b>src</b> directory. Now put some HTML files in <b>src</b>. You should see them in the browser. If you click on an HTML file, it should render. If you want HTML for the home page, use <b>index.html</b>. To use Luan to generate HTML, use whatever.html.luan as described the <a href="tutorial.html">Luan tutorial</a>.</p>
33 33
34 <p>Suppose your domain is <b>www.whatever.com</b>. Our web host is <b>s1.luan.software</b>. So create a DNS CNAME record pointing <b>www.whatever.com</b> to <b>s1.luan.software</b>. Now make a shell script in the working directory called <b>push.sh</b> containing:</p> 34 <p>Suppose your domain is <b>www.whatever.com</b>. Our web host is <b>s1.luan.software</b>. So create a DNS CNAME record pointing <b>www.whatever.com</b> to <b>s1.luan.software</b>. Now make a shell script in the working directory called <b>push.sh</b> containing:</p>
35 <pre> 35 <pre>
36 luan luan:host/push.luan www.whatever.com password src 36 luan luan:host/push.luan www.whatever.com password src
37 </pre> 37 </pre>