Skip to content

Commit

Permalink
Deployed ef8ccf1 with MkDocs version: 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mzorec committed Jun 27, 2019
1 parent 3a1bf7d commit 9780944
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 68 deletions.
42 changes: 24 additions & 18 deletions WebApi/getting-started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
<li>Automatic updates</li>
<li>Manual target execution through FlubuCore web app(deployed together with web api)</li>
</ul>
<p>In this getting started tutorial we will:
- Deploy FlubuCore web api to the server.
- Write .net deployment script that will deploy mvc example application on the sever. You should go through this tutorial even if you want to use FlubuCore.WebApi for .net core application deployment. There are few small differences between using FlubuCore.WebApi for deploying .net core applications and .net applications. All differences are written in this tutorial.
- Write build script that will upload deployment package of the example application to the server and execute deployment script that we wrote.
- Run deployment script through build script remotely.</p>
<p>In this getting started tutorial we will:</p>
<ul>
<li>Deploy FlubuCore web api to the server.</li>
<li>Write .net deployment script that will deploy mvc example application on the sever. You should go through this tutorial even if you want to use FlubuCore.WebApi for .net core application deployment. There are few small differences between using FlubuCore.WebApi for deploying .net core applications and .net applications. All differences are written in this tutorial.</li>
<li>Write build script that will upload deployment package of the example application to the server and execute deployment script that we wrote.</li>
<li>Run deployment script through build script remotely.</li>
</ul>
<p><a name="requirements"></a></p>
<h3 id="requirements"><strong>Requirements</strong><a class="headerlink" href="#requirements" title="Permanent link">&para;</a></h3>
<ul>
Expand All @@ -37,23 +39,27 @@ <h4 id="iis-deployment">IIS deployment<a class="headerlink" href="#iis-deploymen
<p><a name="Write-deploy-script"></a></p>
<h3 id="write-deploy-script"><strong>Write deploy script</strong><a class="headerlink" href="#write-deploy-script" title="Permanent link">&para;</a></h3>
<p>Example .net deploy script can be found <a href="https://github.com/flubu-core/examples/blob/master/DeployScriptExample/BuildScript/DeployScript.cs">Here</a>. If u want to try the example the best way is to just clone the flubu core examples directory. Deploy script for .net core application would be of course slightly different.</p>
<p>Example deploy script for .net application will
- Create iis application pool if it doesnt exists
- Stop the application pool
- Unzip package from /packages directory(which will be uploaded to web api with build script)
- Copy unziped application to new folder where it is/will be hosted.
- Create web site on iis for example web application
- Start the application pool</p>
<p>When you finish writing your deploy script. manually copy it to web api deployed location /scripts folder. Web api can also upload scripts but it is disabled by default for obvious security reason. It should stay disabled in most cases.</p>
<p>Example deploy script for .net application will</p>
<ul>
<li>Create iis application pool if it doesnt exists</li>
<li>Stop the application pool</li>
<li>Unzip package from /packages directory(which will be uploaded to web api with build script)</li>
<li>Copy unziped application to new folder where it is/will be hosted.</li>
<li>Create web site on iis for example web application</li>
<li>Start the application pool</li>
</ul>
<p>When you finish writing your deploy script manually copy it to web api deployed location /scripts folder. Web api can also upload scripts but it is disabled by default for obvious security reason. It should stay disabled in most cases.</p>
<p>If needed modify Example DeployScript for your needs.</p>
<p><a name="Write-build-script"></a></p>
<h3 id="write-build-script"><strong>Write build script</strong><a class="headerlink" href="#write-build-script" title="Permanent link">&para;</a></h3>
<p>Example .net build script can be found <a href="https://github.com/flubu-core/examples/blob/master/DeployScriptExample/BuildScript/BuildScript.cs">here</a></p>
<p>Example .net build script will
- Get the authentication token
- Delete old packages from /packages folder on web api.
- Upload package to web api /packages folder
- Execute Deployment script in /scripts folder that we manually uploaded</p>
<p>Example .net build script will</p>
<ul>
<li>Get the authentication token</li>
<li>Delete old packages from /packages folder on web api.</li>
<li>Upload package to web api /packages folder</li>
<li>Execute Deployment script in /scripts folder that we manually uploaded</li>
</ul>
<p>If needed modify Example BuildScript for your needs.</p>
<p><a name="Run-deploy-script"></a></p>
<h3 id="run-deploy-script"><strong>Run deploy script</strong><a class="headerlink" href="#run-deploy-script" title="Permanent link">&para;</a></h3>
Expand Down
12 changes: 5 additions & 7 deletions build-script-runner-interactive/index.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions build-script-runner/index.html

Large diffs are not rendered by default.

53 changes: 28 additions & 25 deletions buildscript-fundamentals/index.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions getting-started/index.html

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,12 @@ <h2 id="features-and-advantages"><strong>Features and Advantages</strong><a clas
<ul>
<li><a href="https://flubucore.dotnetcore.xyz/override-add-options/">Override existing options or add additional options to tasks through console</a></li>
</ul>
<p><code>c#
context.CreateTarget("Example")`
.AddCoreTask(x =&gt; x.Build("MySolution.sln").Configuration("Release");</code> </p>
<table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span>1
2</pre></div></td><td class="code"><div class="codehilite"><pre><span></span><span class="n">context</span><span class="p">.</span><span class="n">CreateTarget</span><span class="p">(</span><span class="s">&quot;Example&quot;</span><span class="p">)</span><span class="err">`</span>
<span class="p">.</span><span class="n">AddCoreTask</span><span class="p">(</span><span class="n">x</span> <span class="p">=&gt;</span> <span class="n">x</span><span class="p">.</span><span class="n">Build</span><span class="p">(</span><span class="s">&quot;MySolution.sln&quot;</span><span class="p">).</span><span class="n">Configuration</span><span class="p">(</span><span class="s">&quot;Release&quot;</span><span class="p">);</span>
</pre></div>
</td></tr></table>

<p><code>flubu build /o:configuration=Debug</code></p>
<p>flubu would execute <code>dotnet build MySolution.sln -c Debug</code> </p>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion override-add-options/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</pre></div>
</td></tr></table>

<h2 id="example">Example<a class="headerlink" href="#example" title="Permanent link">&para;</a></h2>
<h2 id="example"><strong>Example</strong><a class="headerlink" href="#example" title="Permanent link">&para;</a></h2>
<p>Let's say you have target
<table class="codehilitetable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span>1
2
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit 9780944

Please sign in to comment.