<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ammaromari on Medium]]></title>
        <description><![CDATA[Stories by Ammaromari on Medium]]></description>
        <link>https://medium.com/@ammaromari7077?source=rss-a6b283c2354a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*WMzgwrjdRIgEpvZs</url>
            <title>Stories by Ammaromari on Medium</title>
            <link>https://medium.com/@ammaromari7077?source=rss-a6b283c2354a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 11:56:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ammaromari7077/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Install “Jenkins” | Ubuntu/Debian Server | CLEAN WAY]]></title>
            <link>https://medium.com/@ammaromari7077/install-jenkins-ubuntu-debian-server-clean-way-a87262c91e3d?source=rss-a6b283c2354a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a87262c91e3d</guid>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Ammaromari]]></dc:creator>
            <pubDate>Wed, 07 Aug 2024 14:36:41 GMT</pubDate>
            <atom:updated>2024-08-07T19:25:10.101Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lm1OkfS714dQ48JLnU4lDQ.png" /></figure><p><strong>Install “Jenkins” | Ubuntu/Debian Server | CLEAN WAY</strong></p><p>Plus, Fix (Job for jenkins.service failed because the control process exited with error code. <br>See “systemctl status jenkins.service” and “journalctl -xe” for details.) error.</p><p><strong>I had started with this: </strong><a href="https://www.digitalocean.com/community/tutorials/how-to-install-jenkins-on-ubuntu-22-04"><strong>install-jenkins</strong></a></p><p>After running these commands:</p><pre>$ sudo service start jenkins<br># OR<br>$ sudo service restart jenkins<br># OR<br>$ sudo systemctl start jenkins.service<br># OR<br>$ sudo systemctl restart jenkins.service</pre><p>I face this error:</p><pre>Job for jenkins.service failed because the control process exited with error code. <br>See &quot;systemctl status jenkins.service&quot; and &quot;journalctl -xe&quot; for details.</pre><p>So I tried everything here: <a href="https://stackoverflow.com/questions/39621263/jenkins-fails-when-running-service-start-jenkins?page=1&amp;tab=scoredesc#tab-top">Stackoverflow</a></p><p>Now after trying a lot of things, I can help you to install Jenkins in clean way step-by-step:</p><ul><li><strong>Step #1 — install dependencies</strong></li></ul><pre>$ sudo apt update<br>$ sudo apt upgrade<br>$ sudo apt install curl<br>$ sudo apt install wget</pre><pre># Install JDK<br># versions:<br># - &quot;openjdk-8-jre&quot;<br># - &quot;openjdk-11-jre&quot;<br># - &quot;openjdk-17-jre&quot;<br># - &quot;openjdk-18-jre&quot;<br># - &quot;openjdk-19-jre&quot;<br># --------<br># But here we will work on version 17<br>$ apt install openjdk-17-jre<br><br><br># ----- To see the JDK version ----- #<br>$ java –version<br># OR<br>$ sudo update-alternatives --config java<br># OR<br>$ cd /usr/lib/jvm/</pre><p>If you faced any issue and you want to remove the installed JDK, here the way to remove the installed JDK:</p><blockquote>remove JDK</blockquote><pre>$ sudo update-alternatives --config java<br>$ sudo apt-get autoremove openjdk-11-jre # choose JDK installed version<br>$ sudo apt-get purge openjdk*<br><br>$ sudo update-alternatives --config java</pre><ul><li><strong>Step #2 — install Jenkins</strong></li></ul><p>Same as <a href="https://www.digitalocean.com/community/tutorials/how-to-install-jenkins-on-ubuntu-22-04"><strong>install-jenkins</strong></a>, but with adding JDK path</p><pre># Install jenkins<br>$ wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key |sudo gpg --dearmor -o /usr/share/keyrings/jenkins.gpg<br>$ sudo sh -c &#39;echo deb [signed-by=/usr/share/keyrings/jenkins.gpg] http://pkg.jenkins.io/debian-stable binary/ &gt; /etc/apt/sources.list.d/jenkins.list&#39;<br>$ sudo apt update<br>$ sudo apt install jenkins</pre><pre>$ nano /etc/init.d/jenkins<br><br>#!/usr/bin/env /lib/init/init-d-script<br># /etc/init.d/jenkins<br># debian-compatible jenkins startup script.<br># Amelia A Lewis &lt;alewis@ibco.com&gt;<br>#<br>### BEGIN INIT INFO<br># Provides:          jenkins<br># Required-Start:    $remote_fs $syslog $network<br># Required-Stop:     $remote_fs $syslog $network<br># Default-Start:     2 3 4 5<br># Default-Stop:      0 1 6<br># Short-Description: Start Jenkins at boot time<br># Description:       Controls Jenkins Automation Server<br>### END INIT INFO<br><br># ------- line changed ------- #<br>PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/lib/jvm/java-17-openjdk-amd64/bin/<br># ---------------------------- #<br>DAEMON=none<br>COMMAND_NAME=java<br>NAME=&quot;jenkins&quot;<br>DESC=&quot;Jenkins Automation Server&quot;<br><br>check_arguments() { ...</pre><ul><li><strong>Step #3 — Jenkins Port</strong></li></ul><p>In this step you should check the open ports on your server, to see if port number 8080 is already open</p><pre># Check if port number 8080 opened<br>$ netstat -tulpn | grep LISTEN | grep :8080</pre><p><strong>If the port is opened</strong> you should change Jenkins port, So here is the best way to</p><ul><li><em>Change Jenkins port from 8080 to another new port:</em></li></ul><pre># --------- Change Jenkins Port ------- #<br>$ sudo systemctl edit jenkins<br># Add these lines and save:<br>[Service]<br>Environment=&quot;JENKINS_PORT=&lt;the-new-port&gt;&quot;<br><br># After running this command<br># Go to HTTP_PORT=8080 and change it to the new port<br>$ sudo nano /etc/default/jenkins</pre><pre># Run jenkins manually to see the version of JDK that you will use<br>$ sudo /usr/bin/jenkins<br><br># ---------- run jenkins -------------- #<br>$ sudo java -jar /usr/share/java/jenkins.war --httpPort=&lt;the-new-port&gt;<br>- Then &quot;Ctrl+C&quot;<br>$ sudo service jenkins start<br><br># ------- check jenkins status -------- #<br>$ sudo systemctl status jenkins<br># OR<br>$ sudo service jenkins status</pre><p>Very nice “Jenkins” now running, but sadly you can’t access it from outside the server (from anywhere), so let’s open the port using firewall and access it from anywhere:</p><pre>$ sudo ufw allow &lt;jenkins-port&gt;<br>$ sudo ufw allow OpenSSH<br>$ sudo ufw enable</pre><p>Congratulations, Now you can access it from anywhere, let’s open it:</p><ul><li>Go to the browser, and open a new tab</li><li>Type: <em>&lt;server-ip&gt;:&lt;jenkins-port&gt;</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a87262c91e3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All You Need to Know: Popular Tools for Git and GitHub (Updated)]]></title>
            <link>https://medium.com/@ammaromari7077/all-you-need-to-know-popular-tools-for-git-and-github-7a03cec69202?source=rss-a6b283c2354a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a03cec69202</guid>
            <category><![CDATA[popular]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[gitlab]]></category>
            <dc:creator><![CDATA[Ammaromari]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 16:25:21 GMT</pubDate>
            <atom:updated>2025-09-22T10:08:46.222Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*DjcWuMVISmhn4LeH5o9B6w.png" /></figure><p>The provided content is a detailed guide that covers various aspects of using Git for version control. It includes instructions for setting up user configurations, initializing a Git repository, managing remotes, adding files, making commits, checking changes, viewing commit logs, pushing to existing repositories, creating new repositories, cloning, pulling, branching, undoing commits, stashing changes, merging branches, and counting commits.</p><p>This guide is likely to be helpful for users who are new to Git and GitHub or those looking for a comprehensive reference for common Git commands and workflows. It provides step-by-step instructions along with explanations for each command, making it accessible for users at different skill levels.</p><p>The goal is to help users employ version control effectively, this guide can be a valuable resource as it covers a wide range of Git-related tasks commonly encountered in software development projects.</p><p><strong>GIT Download url:</strong> <a href="https://git-scm.com/downloads">Git-Downloads</a></p><p><strong>Check Git Version</strong></p><pre>## Check Git Version<br>$ git --version</pre><p><strong>Help</strong></p><pre>$ git help<br>$ git help &lt;command&gt;<br># Example:<br>$ git help commit</pre><p><strong>Username and Email:</strong></p><pre># Check your username and email, for the current project<br>$ git config user.name<br>$ git config user.email</pre><pre># Set username and email, for the current project<br>$ git config user.name &lt;your-username&gt;<br>$ git config user.email &lt;your-email&gt;</pre><pre># Check your username and email, for all the projects in the device<br>$ git config --global user.name<br>$ git config --global user.email</pre><pre># Set username and email global, for all the projects in the device<br>$ git config --global user.name &lt;your-username&gt;<br>$ git config --global user.email &lt;your-email&gt;</pre><p><strong>Add Git to your project:</strong></p><pre>$ git init</pre><p><strong>Remote:</strong></p><ul><li>Show remote info:</li></ul><pre>$ git remote show origin</pre><ul><li>List remote branches:</li></ul><pre>$ git remote -v</pre><ul><li>Remote public:</li></ul><pre>$ git remote add &quot;&lt;remote-name&gt;&quot; &lt;repo-url&gt;<br># - - - OR<br>$ git remote add origin &lt;repo-url&gt;</pre><ul><li>Remote a repo/private repo:</li></ul><p>Open GitHub Account → Settings → Developer Settings → Personal access tokens — Tokens (classic) → Generate new token (classic)</p><pre># It will remove current remote and set another one<br>$ git remote set-url origin https://&lt;token&gt;@github.com/&lt;username&gt;/&lt;repo&gt;</pre><ul><li>Remove remote:</li></ul><pre># Removing current remote and set another one<br>$ git remote set-url origin git://&lt;new-url-here&gt;</pre><pre># Just remove remote<br>$ git remote remove origin<br><br># - - - OR<br><br>$ git remote remove &lt;remote-name&gt;</pre><p><strong>Add files for commit/push/stash…:</strong></p><ul><li>All files:</li></ul><pre>$ git add .</pre><ul><li>Single file:</li></ul><pre>$ git add &lt;file-name&gt;</pre><p><strong>Make a commit:</strong></p><pre>$ git commit -m &quot;&lt;your-commit&gt;&quot;</pre><p><strong>Check the changes:</strong></p><pre>$ git status</pre><p><strong>Check commit logs:</strong></p><pre>$ git log</pre><p><strong>How to Push to an existing repository (GitHub):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*b6BfQZrGKj7344ejfbBzzg.png" /></figure><pre># &quot;git init&quot; no need: if you have a git folder in your project … file named &quot;.get&quot;<br>$ git init <br>$ git remote add origin git@github.com:&lt;username&gt;/&lt;repo-name&gt;.git<br>$ git add .<br>$ git commit -m &quot;&lt;your-commit&gt;&quot;<br>$ git branch -M main<br>$ git push -u origin main<br># - - - - OR<br>$ git remote add origin git@github.com:&lt;username&gt;/&lt;repo-name&gt;.git<br>$ git add .<br>$ git commit -m &quot;&lt;your-commit&gt;&quot;<br>$ git branch -M main<br>$ git push -u origin main</pre><p><strong>How to Create a New Repository and Push the project (GitHub):</strong></p><ul><li>Open GitHub and create a new repo from “Repositories”:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*rv14SXeaPrH3b1ZLdDHpfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*Rd9CluqpFkxjQq8C5xGjzg.png" /></figure><ul><li>Open your project that you want to push it</li><li>Right click on empty place and open “Git Bash Here”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*DSBgL_eINn_lGmx1UUoZ9A.png" /></figure><pre>$ git init<br># change from master branch to main branch<br>$ git branch -M main<br>$ touch README.md # optional<br>$ git add README.md # optional<br>$ git add .<br>$ git commit -m &quot;first commit&quot;<br>$ git remote add origin git@github.com:&lt;username&gt;/&lt;repo-name&gt;.git<br>$ git push -u origin main</pre><p><strong>Clone:</strong></p><ul><li>Clone public repo:</li></ul><pre>$ git clone &lt;repo-url&gt;</pre><ul><li>Clone Private repo:<br>Open GitHub Account → Settings → Developer Settings → Personal access tokens — Tokens (classic) → Generate new token (classic)</li></ul><pre>$ git clone https://&lt;token&gt;@github.com/&lt;username&gt;/&lt;repo-name&gt;.git</pre><ul><li>Clone a specific branch:</li></ul><pre>$ git clone -b &lt;branch-name&gt; &lt;repo-url&gt;</pre><p><strong>PUSH:</strong></p><pre># Push the commits<br>$ git push</pre><p><strong>PULL:</strong></p><ul><li>Pull from the current branch:</li></ul><pre># &quot;git pull&quot; is a combination of &quot;git fetch&quot; and &quot;git merge&quot;<br>$ git pull</pre><ul><li>Pull from the current branch:</li></ul><pre><br># Pull from all the branches<br>$ for branch in $(git branch -a | grep remotes/origin/ | grep -v HEAD | sed &#39;s#remotes/origin/##&#39;); do git checkout $branch 2&gt;/dev/null || git checkout -b $branch origin/$branch; git pull; done</pre><p><strong>Branch:</strong></p><ul><li>List the branches :</li></ul><pre># List local branches<br>$ git branch<br><br># List all branches local and remote, (the connected branches = Red color)<br>$ git branch -a</pre><ul><li>Create branches :</li></ul><pre># Create a new local branch<br>$ git branch &lt;branch-name&gt;<br><br># Create and switch to a new local branch: Take the changes from the current branch and move it to the new branch<br>$ git checkout -b &lt;new-branch-name&gt;<br><br># Create and switch new branch (new)<br>$ git switch -c &lt;branch-name&gt;</pre><ul><li>Switch from branch to a branch :</li></ul><pre># Move from the current branch to the existing branch<br>$ git checkout &lt;existing-branch-name&gt;<br><br># Switch branch (new)<br>$ git switch &lt;branch-name&gt;</pre><ul><li>Rename a branch:</li></ul><pre># Update the name of the old branch<br>$ git branch -m &lt;old-name&gt; &lt;new-name&gt;</pre><ul><li>Delete a branch :</li></ul><pre><br><br><br># Delete a local branch (if merged)<br>$ git branch -d &lt;branch-name&gt;<br><br># Delete local branch (force, regardless of merge status), even if it&#39;s merged or not<br>$ git branch -D &lt;branch-name&gt;</pre><p><strong>List current commit history:</strong></p><pre>$ git reflog</pre><p><strong>Undo commit:</strong></p><ul><li>Undo last commit:</li></ul><pre>$ git reset --soft HEAD~1<br># OR<br>$ git revert HEAD</pre><ul><li>Undo to specific commit:</li></ul><pre>$ git reflog<br>$ git revert &lt;id&gt;</pre><p><strong>List current commit history:</strong></p><pre>$ git reflog<br>$ git revert &lt;id&gt;</pre><p><strong>Stash:</strong></p><pre># List of stashes:<br>$ git stash list<br><br># Add to stash:<br>$ git stash<br><br># Stash staged files only<br>$ git stash --staged<br><br># Add message to the stashed<br>$ git stash --staged -m &quot;&lt;message-here&gt;&quot;<br><br># Retrieve last stash (Recommended):<br>$ git stash apply<br><br># Retrieve last stash (NOT Recommended):<br>$ git stash pop<br><br># Retrieve a specific stash:<br>$ git stash apply stash@{&lt;index&gt;}<br><br># Remove a single stashed state from the stash list:<br>$ git stash drop stash@{&lt;index&gt;}<br><br># Remove last stash:<br>$ git stash drop<br><br># Remove all stashed files at once:<br>$ git stash clear</pre><p><strong>Merge — How to merge branches using Git CLI:</strong></p><pre>$ git merge &lt;branch-name&gt;</pre><p><strong>Count the Commits — How to count the commits for users by usernames and emails sorted:</strong></p><pre><br># Count the commits with username, Sorted by date<br># &lt;count-number&gt; | &lt;username&gt;<br>$ git shortlog -s<br><br># Count the commits with username, Sorted by count number<br># &lt;count-number&gt; | &lt;username&gt;<br>$ git shortlog -s -n<br><br># Count the commits with username and email, Sorted by count number<br># &lt;count-number&gt; | &lt;username&gt; | &lt;email&gt;<br>$ git shortlog -s -e -n<br><br># Count the commits for users from all the branches with (username, email, dates, and commit hash IDs)<br># Sorted by count number<br>$ git shortlog --pretty=format:&#39;%ci | %H&#39; --no-merges -e -n<br># Output:<br># &lt;username&gt; &lt;email&gt; ( &lt;count-number&gt; ):<br>#       &lt;commit-date&gt; | &lt;commit-hash-id&gt;<br>#       &lt;commit-date&gt; | &lt;commit-hash-id&gt;<br># &lt;username&gt; &lt;email&gt; ( &lt;count-number&gt; ):<br>#       &lt;commit-date&gt; | &lt;commit-hash-id&gt;<br># ...</pre><p><strong>More: </strong><a href="https://github.com/git-guides">GitHub: Git-Guides</a></p><p><strong>My GitHub:</strong> <a href="https://github.com/Ammar7077">Ammar7077</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a03cec69202" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerize a Flutter Web Apps — using (-d web-server)]]></title>
            <link>https://medium.com/@ammaromari7077/dockerize-a-flutter-web-apps-using-d-web-server-fbd01f593d10?source=rss-a6b283c2354a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbd01f593d10</guid>
            <category><![CDATA[flutter-web-deployment]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[flutter-web]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Ammaromari]]></dc:creator>
            <pubDate>Sun, 20 Aug 2023 02:53:55 GMT</pubDate>
            <atom:updated>2023-08-20T03:04:36.497Z</atom:updated>
            <content:encoded><![CDATA[<h3>Dockerize a Flutter Web App — using (-d web-server)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vkG4agfFnE7CWsnNWRdNOg.png" /></figure><p>I came found a testing command while researching <a href="https://docs.flutter.dev/platform-integration/web/renderers">web renderer instructions for Flutter web apps</a>:</p><pre>flutter run -d web-server</pre><p>This command has displayed amazing speed and accuracy, especially when used across a variety of browsers, including Firefox, Edge, and more. While this testing command is exceptional for trial and experimentation purposes, it does come with a warning that it is not suggested for use in production. Even with this drawback, it stands out as a good option for thoroughly testing and perfecting Flutter web apps.</p><p>I’ve recently familiarized myself with a pair of methodologies for developing Docker containers optimized for Flutter web applications. I’m enthusiastic about sharing these strategies with you.</p><h3>Method 1 | The Recommended Approach</h3><p>Here is an example of the recommended approach for building a Flutter Web Container: <a href="https://github.com/Ammar7077/docker_flutter_web">Flutter_Dockerfile</a></p><h3>Method 2 | Using (-d web-server)</h3><h4>Step #1 | Building the Dockerfile</h4><p>Create a Dockerfile on the root of the Flutter web app (in the same folder that contains pubspec.yaml file).</p><p><strong>`Dockerfile`:</strong></p><pre>### The first instruction sets the base image for the container, <br>### while the second instruction creates a named stage for performing build steps in a multi-stage build.<br>### The choice between these two instructions depends on your specific requirements and the structure of your Dockerfile.<br>#<br># FROM cirrusci/flutter:stable AS build<br>FROM cirrusci/flutter:stable<br><br>### Copying the files to the /app/ directory and setting it as the working directory.<br>#<br>RUN mkdir /app/<br>COPY . /app/<br>WORKDIR /app/<br>### This command provides detailed information about the Flutter installation, environment, and any missing dependencies.<br>### And it helps ensure that the necessary tools and configurations are in place for building Flutter applications.<br>#<br>RUN flutter doctor -v<br>### This command enables web support in the Flutter SDK. <br>### It configures the Flutter environment to include web-specific libraries and dependencies required for building Flutter web applications.<br>#<br>RUN flutter config --enable-web<br>### This command builds the Flutter web application in release mode. <br>### It generates the necessary files and assets for running the application on the web. <br>### The --web-renderer=auto flag allows Flutter to automatically choose the appropriate web renderer (HTML or Canvas) based on the platform and browser capabilities.<br>#<br>RUN flutter build web --release --web-renderer=auto</pre><h4>Step #2 | Creating docker-compose.yml</h4><p>Create a docker-compose.yml file in the same Dockerfile place.</p><p><strong>`docker-compose.yml`:</strong></p><pre># version: &#39;&lt;COMPOSE VERSION&gt;&#39;<br>version: &#39;3.8&#39;<br>services:<br>    dashboard:<br>        build: .<br>        restart: always<br>        ports:<br>            - &quot;&lt;PUBLIC PORT&gt;:&lt;FLUTTER RUNNING PORT&gt;&quot;<br>        command: &gt;<br>            sh -c &quot;flutter pub get &amp;&amp; flutter run -d web-server --web-renderer=auto --web-port &lt;FLUTTER RUNNING PORT&gt; --web-hostname 0.0.0.0&quot;</pre><p>To choose the compose version, please check this: <a href="https://docs.docker.com/compose/compose-file/compose-versioning/">https://docs.docker.com/compose/compose-file/compose-versioning</a></p><pre>flutter pub get</pre><p>Get packages and download the dependencies defined in the pubspec.yaml file.</p><pre>flutter run</pre><p>It starts the Flutter development server and deploys the application to a target device.</p><pre>-d web-server</pre><p>It specifies the target device as a web server.<br>This allows you to run and test your Flutter web application in a web browser.</p><p>-d: This flag is used to specify the target device for running your Flutter application. In this case, web-server is one of the device options you can choose. Other common options include android, iOS, macos, windows, and more, depending on the platforms supported by Flutter.</p><pre>--web-renderer=auto</pre><p>Flutter will automatically choose the best renderer based on the capabilities of the web browser.<br>The available options for the --web-rendererflag are auto, html, and canvaskit<br>But it will not work perfectly when you use “html” renderer.</p><h4>Step #3 | Building and Running the Container</h4><p>At this juncture, a pivotal concern demands attention. It’s imperative to acknowledge that the act of building the Dockerfiletriggers an immediate execution of the container, a practice that doesn’t align with recommended protocols. Nevertheless, despite this caveat, let’s proceed to delve into the procedure…</p><p><strong>Build and Run:</strong></p><pre>docker-compose up</pre><p>OR</p><pre>docker-compose up -d</pre><p>This command will start all the services defined in the docker-compose.yml file and create the associated containers<br><strong>To run the containers in detached mode (in the background) you can add the </strong>-d</p><p>Using flutter run -d web-server with the appropriate options, such as --web-renderer=auto, is a good approach for testing and development of Flutter web applications.</p><p>Running your Flutter web application using a web server allows you to test and debug your application in a web browser, which closely resembles the environment where your application will be deployed. <br>It provides a convenient and efficient way to iterate on your code, make changes, and see the results instantly without the need to constantly rebuild and redeploy the application.<br>The hot-reload feature in Flutter enables you to see the updates in real-time as you modify your code, making the development process faster, smoother debugging, and a more efficient development workflow. <br>With each code change, the application reloads in the web browser, preserving the app state, which helps you quickly test and iterate on different features and user interactions.</p><p>So, No need to install Flutter on your server.<br>But if you insist on downloading it, these references will help you (for Linux servers):</p><p><strong>Install Flutter on Ubuntu 20.04 LTS:</strong><br><a href="https://www.cyberithub.com/how-to-install-flutter-on-ubuntu-20-04-lts-focal-fossa">https://www.cyberithub.com/how-to-install-flutter-on-ubuntu-20-04-lts-focal-fossa</a></p><p><strong>Install Chrome on Ubuntu, Debian, and Linux Mint:</strong><br><a href="https://linuxconfig.org/how-to-install-google-chrome-browser-on-linux">https://linuxconfig.org/how-to-install-google-chrome-browser-on-linux</a></p><p>I’m hopeful that this story serves as a valuable resource to aid your journey. If you come across any discrepancies or have further questions, please don’t hesitate to reach out. Your feedback is immensely valuable in refining and enhancing the information shared.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbd01f593d10" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>