Skip to content

Commit 611d56a

Browse files
committed
Deploy website - based on 5067d47090dba43ae6d27395c5385becfe0752f5
1 parent bbd1d37 commit 611d56a

File tree

113 files changed

+169
-121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+169
-121
lines changed

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<link rel="search" type="application/opensearchdescription+xml" title="Vue &amp; Node admin panel framework" href="/opensearch.xml">
1616

1717
<script src="/scripts/adminforth.js"></script><link rel="stylesheet" href="/assets/css/styles.ce766278.css">
18-
<script src="/assets/js/runtime~main.189f4f7e.js" defer="defer"></script>
18+
<script src="/assets/js/runtime~main.f67779be.js" defer="defer"></script>
1919
<script src="/assets/js/main.58daaebd.js" defer="defer"></script>
2020
</head>
2121
<body class="navigation-with-keyboard">

assets/js/0f528969.cf654748.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/0f528969.dcb22e51.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/js/4a260936.2ce39b6a.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/4a260936.e14abc6a.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/js/dbfc4782.2f402c8d.js renamed to assets/js/dbfc4782.3904860f.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/runtime~main.189f4f7e.js renamed to assets/js/runtime~main.f67779be.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blog/ai-blog/index.html

Lines changed: 11 additions & 3 deletions
Large diffs are not rendered by default.

blog/archive/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<link rel="search" type="application/opensearchdescription+xml" title="Vue &amp; Node admin panel framework" href="/opensearch.xml">
1616

1717
<script src="/scripts/adminforth.js"></script><link rel="stylesheet" href="/assets/css/styles.ce766278.css">
18-
<script src="/assets/js/runtime~main.189f4f7e.js" defer="defer"></script>
18+
<script src="/assets/js/runtime~main.f67779be.js" defer="defer"></script>
1919
<script src="/assets/js/main.58daaebd.js" defer="defer"></script>
2020
</head>
2121
<body class="navigation-with-keyboard">

blog/atom.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,16 @@ While this will work fine, it might give slower serving then if you would route
118118
<div class="language-json codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#f8f8f2;--prism-background-color:#272822"><div class="codeBlockTitle_Ktv7">./Dockerrun.aws.json</div><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-json codeBlock_bY9V thin-scrollbar" style="color:#f8f8f2;background-color:#272822"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#f8f8f2"><span class="token plain">{</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> "AWSEBDockerrunVersion": "1",</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> "Image": {</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> "Name": "my-ai-blog",</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> "Update": "true"</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> },</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> "Ports": [</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> {</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> "ContainerPort": 3500,</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> "HostPort": 80</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> }</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> ],</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> "Volumes": [</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> {</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> "HostDirectory": "/dbData",</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> "ContainerDirectory": "/app/db"</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> }</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain"> ]</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain">}</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
119119
<p>Now deploy your app to Elastic Beanstalk:</p>
120120
<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#f8f8f2;--prism-background-color:#272822"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#f8f8f2;background-color:#272822"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#f8f8f2"><span class="token plain">eb create live --envvars $(cat .env | tr '\n' ',' | sed 's/,$//') --single --instance-types t4g.nano</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
121-
<p>To terminate environment and stop billing:</p>
122-
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#f8f8f2;--prism-background-color:#272822"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#f8f8f2;background-color:#272822"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#f8f8f2"><span class="token plain">eb terminate </span><span class="token parameter variable" style="color:#f8f8f2">--force</span><span class="token plain"> live</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>]]></content>
121+
<p>During deployment notice IP address of your instance. It will be shown in line:</p>
122+
<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#f8f8f2;--prism-background-color:#272822"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#f8f8f2;background-color:#272822"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#f8f8f2"><span class="token plain">Created EIP: x.y.z.w</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
123+
<blockquote>
124+
<p>👆 In future, if you wish to terminate environment and stop billing:</p>
125+
<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#f8f8f2;--prism-background-color:#272822"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-bash codeBlock_bY9V thin-scrollbar" style="color:#f8f8f2;background-color:#272822"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#f8f8f2"><span class="token plain">eb terminate </span><span class="token parameter variable" style="color:#f8f8f2">--force</span><span class="token plain"> live</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>
126+
</blockquote>
127+
<h3 class="anchor anchorWithStickyNavbar_LWe7" id="add-https-and-cdn">Add HTTPs and CDN<a class="hash-link" aria-label="Direct link to Add HTTPs and CDN" title="Direct link to Add HTTPs and CDN" href="https://adminforth.dev/blog/ai-blog/#add-https-and-cdn">​</a></h3>
128+
<p>For adding HTTPS and CDN you will use free Cloudflare service (though you can use paid AWS Cloudfront or any different way e.g. add Traefik and Let's Encrypt). Go to <a href="https://cloudflare.com/" target="_blank" rel="noopener noreferrer">https://cloudflare.com</a> and create an account. Add your domain and follow instructions to change your domain nameservers to Cloudflare ones.</p>
129+
<p>Go to your domain settings and add A record with your Elastic Beanstalk IP address, e.g.</p>
130+
<div class="codeBlockContainer_Ckt0 theme-code-block" style="--prism-color:#f8f8f2;--prism-background-color:#272822"><div class="codeBlockContent_biex"><pre tabindex="0" class="prism-code language-text codeBlock_bY9V thin-scrollbar" style="color:#f8f8f2;background-color:#272822"><code class="codeBlockLines_e6Vv"><span class="token-line" style="color:#f8f8f2"><span class="token plain">Type: A</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain">Name: blog</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain">Value: x.y.z.w</span><br></span><span class="token-line" style="color:#f8f8f2"><span class="token plain">Cloudflare proxy: orange (enabled)</span><br></span></code></pre><div class="buttonGroup__atx"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_eSgA" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_y97N"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_LjdS"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div>]]></content>
123131
<author>
124132
<name>Ivan Borshcho</name>
125133
<uri>https://github.com/ivictbor</uri>

0 commit comments

Comments
 (0)