<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Meng Ly</title>
    <description>The latest articles on DEV Community by Meng Ly (@meng_ly_5f07a38c932b97230).</description>
    <link>https://dev.to/meng_ly_5f07a38c932b97230</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2045826%2F12fe9372-dc14-486d-9d1b-6eeabd2e76cb.jpg</url>
      <title>DEV Community: Meng Ly</title>
      <link>https://dev.to/meng_ly_5f07a38c932b97230</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/meng_ly_5f07a38c932b97230"/>
    <language>en</language>
    <item>
      <title>Changing App Icon in Flutter</title>
      <dc:creator>Meng Ly</dc:creator>
      <pubDate>Thu, 14 Nov 2024 13:55:12 +0000</pubDate>
      <link>https://dev.to/meng_ly_5f07a38c932b97230/changing-app-icon-in-flutter-1hjb</link>
      <guid>https://dev.to/meng_ly_5f07a38c932b97230/changing-app-icon-in-flutter-1hjb</guid>
      <description>&lt;h2&gt;
  
  
  Introduction:
&lt;/h2&gt;

&lt;p&gt;Here's a quick guide to changing the app icon in a Flutter application. We’ll cover the steps to navigate the project structure, set up correctly sized images, and follow best practices. Plus, we’ll include links to free icon generators for easy customization.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Navigate to the Root Folder Structure
&lt;/h2&gt;

&lt;p&gt;To change the app icon, navigate to the root folder of your Flutter project. Here, you'll find the files needed to replace the default icon.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flutter pub add 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flutter pub run flutter_launcher_icons 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd03flldqsmfz8cq3ipqq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd03flldqsmfz8cq3ipqq.png" alt="Image description" width="443" height="963"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Replace the Default App Icon Image
&lt;/h2&gt;

&lt;p&gt;In the root folder structure, locate the android and ios directories. Inside these directories, you will find subdirectories named res and Assets.xcassets, respectively. These directories contain the image files for the app icons. Replace the default app icon image files with your custom app icon images. Make sure to follow the image size specifications for each platform.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Image Size Specifications
&lt;/h2&gt;

&lt;p&gt;It’s important to follow the image size specifications for each platform to ensure that the app icon looks good on all devices. Here are the recommended image sizes:&lt;/p&gt;

&lt;h3&gt;
  
  
  Android:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;mipmap-mdpi: 48x48 pixels&lt;/li&gt;
&lt;li&gt;mipmap-hdpi: 72x72 pixels&lt;/li&gt;
&lt;li&gt;mipmap-xhdpi: 96x96 pixels&lt;/li&gt;
&lt;li&gt;mipmap-xxhdpi: 144x144 pixels&lt;/li&gt;
&lt;li&gt;mipmap-xxxhdpi: 192x192 pixels&lt;/li&gt;
&lt;li&gt;mipmap-xxxxhdpi: 512x512 pixels&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  IOS:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;20x20 pixels&lt;/li&gt;
&lt;li&gt;29x29 pixels&lt;/li&gt;
&lt;li&gt;40x40 pixels&lt;/li&gt;
&lt;li&gt;60x60 pixels&lt;/li&gt;
&lt;li&gt;76x76 pixels&lt;/li&gt;
&lt;li&gt;83.5x83.5 pixels&lt;/li&gt;
&lt;li&gt;1024x1024 pixels And more sizes may be required for specific devices and situations.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Contact Me:
&lt;/h2&gt;

&lt;p&gt;*&lt;em&gt;Telegram: *&lt;/em&gt; &lt;a href="https://t.me/MenglyUch" rel="noopener noreferrer"&gt;https://t.me/MenglyUch&lt;/a&gt;&lt;br&gt;
*&lt;em&gt;TikTok: *&lt;/em&gt; &lt;a href="https://www.tiktok.com/@mengly9662" rel="noopener noreferrer"&gt;https://www.tiktok.com/@mengly9662&lt;/a&gt;&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
      <category>android</category>
      <category>ios</category>
    </item>
    <item>
      <title>MySQL cheatsheet</title>
      <dc:creator>Meng Ly</dc:creator>
      <pubDate>Fri, 01 Nov 2024 01:03:59 +0000</pubDate>
      <link>https://dev.to/meng_ly_5f07a38c932b97230/mysql-cheatsheet-8ik</link>
      <guid>https://dev.to/meng_ly_5f07a38c932b97230/mysql-cheatsheet-8ik</guid>
      <description>&lt;h2&gt;
  
  
  1. Browsing
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SHOW DATABASES;
SHOW TABLES;
SHOW FIELDS FROM table / DESCRIBE table;
SHOW CREATE TABLE table;
SHOW PROCESSLIST;
KILL process_number;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Select
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM table;
SELECT * FROM table1, table2;
SELECT field1, field2 FROM table1, table2;
SELECT ... FROM ... WHERE condition
SELECT ... FROM ... WHERE condition GROUP BY field;
SELECT ... FROM ... WHERE condition GROUP BY field HAVING condition2;
SELECT ... FROM ... WHERE condition ORDER BY field1, field2;
SELECT ... FROM ... WHERE condition ORDER BY field1, field2 DESC;
SELECT ... FROM ... WHERE condition LIMIT 10;
SELECT DISTINCT field1 FROM ...
SELECT DISTINCT field1, field2 FROM ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Select-Join
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT ... FROM t1 JOIN t2 ON t1.id1 = t2.id2 WHERE condition;
SELECT ... FROM t1 LEFT JOIN t2 ON t1.id1 = t2.id2 WHERE condition;
SELECT ... FROM t1 JOIN (t2 JOIN t3 ON ...) ON ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Conditions
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;field1 = value1
field1 &amp;lt;&amp;gt; value1
field1 LIKE 'value _ %'
field1 IS NULL
field1 IS NOT NULL
field1 IS IN (value1, value2)
field1 IS NOT IN (value1, value2)
condition1 AND condition2
condition1 OR condition2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Create / Open / Delete Database
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE DATABASE DatabaseName;
CREATE DATABASE DatabaseName CHARACTER SET utf8;
USE DatabaseName;
DROP DATABASE DatabaseName;
ALTER DATABASE DatabaseName CHARACTER SET utf8;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. Backup Database to SQL File
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysqldump -u Username -p dbNameYouWant &amp;gt; databasename_backup.sql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7. Restore from backup SQL File
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysql -u Username -p dbNameYouWant &amp;lt; databasename_backup.sql;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  8. Repair Tables After Unclean Shutdown
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysqlcheck --all-databases;
mysqlcheck --all-databases --fast;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  9. Insert
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;INSERT INTO table1 (field1, field2) VALUES (value1, value2); 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  10. Delete
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DELETE FROM table1 / TRUNCATE table1
DELETE FROM table1 WHERE condition
DELETE FROM table1, table2 WHERE table1.id1 =
  table2.id2 AND condition
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  11. Update
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;UPDATE table1 SET field1=new_value1 WHERE condition;
UPDATE table1, table2 SET field1=new_value1, field2=new_value2, ... WHERE
  table1.id1 = table2.id2 AND condition;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  12. Create / Delete / Modify Table
&lt;/h2&gt;

&lt;h3&gt;
  
  
  12.1 Create
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE TABLE table (field1 type1, field2 type2);
CREATE TABLE table (field1 type1, field2 type2, INDEX (field));
CREATE TABLE table (field1 type1, field2 type2, PRIMARY KEY (field1));
CREATE TABLE table (field1 type1, field2 type2, PRIMARY KEY (field1,field2));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE TABLE table1 (fk_field1 type1, field2 type2, ...,
  FOREIGN KEY (fk_field1) REFERENCES table2 (t2_fieldA))
    [ON UPDATE|ON DELETE] [CASCADE|SET NULL]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE TABLE table1 (fk_field1 type1, fk_field2 type2, ...,
 FOREIGN KEY (fk_field1, fk_field2) REFERENCES table2 (t2_fieldA, t2_fieldB))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE TABLE table IF NOT EXISTS;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE TEMPORARY TABLE table;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  12.2 Delete
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DROP TABLE table;
DROP TABLE IF EXISTS table;
DROP TABLE table1, table2, ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  12.3 Modify
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALTER TABLE table MODIFY field1 type1
ALTER TABLE table MODIFY field1 type1 NOT NULL ...
ALTER TABLE table CHANGE old_name_field1 new_name_field1 type1
ALTER TABLE table CHANGE old_name_field1 new_name_field1 type1 NOT NULL ...
ALTER TABLE table ALTER field1 SET DEFAULT ...
ALTER TABLE table ALTER field1 DROP DEFAULT
ALTER TABLE table ADD new_name_field1 type1
ALTER TABLE table ADD new_name_field1 type1 FIRST
ALTER TABLE table ADD new_name_field1 type1 AFTER another_field
ALTER TABLE table DROP field1
ALTER TABLE table ADD INDEX (field);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  12.4 Change field order
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALTER TABLE table MODIFY field1 type1 FIRST
ALTER TABLE table MODIFY field1 type1 AFTER another_field
ALTER TABLE table CHANGE old_name_field1 new_name_field1 type1 FIRST
ALTER TABLE table CHANGE old_name_field1 new_name_field1 type1 AFTER
  another_field
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  13. Keys
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE TABLE table (..., PRIMARY KEY (field1, field2))
CREATE TABLE table (..., FOREIGN KEY (field1, field2) REFERENCES table2
(t2_field1, t2_field2))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  14. Users and Privileges
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE USER 'user'@'localhost';
GRANT ALL PRIVILEGES ON base.* TO 'user'@'localhost' IDENTIFIED BY 'password';
GRANT SELECT, INSERT, DELETE ON base.* TO 'user'@'localhost' IDENTIFIED BY 'password';
REVOKE ALL PRIVILEGES ON base.* FROM 'user'@'host'; -- one permission only
REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'user'@'host'; -- all permissions
FLUSH PRIVILEGES;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SET PASSWORD = PASSWORD('new_pass');
SET PASSWORD FOR 'user'@'host' = PASSWORD('new_pass');
SET PASSWORD = OLD_PASSWORD('new_pass');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DROP USER 'user'@'host';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  15. Reset Root Password
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ /etc/init.d/mysql stop
$ mysqld_safe --skip-grant-tables
$ mysql # on another terminal
mysql&amp;gt; UPDATE mysql.user SET password=PASSWORD('new_pass') WHERE user='root';
## Switch back to the mysqld_safe terminal and kill the process using Control + \
$ /etc/init.d/mysql start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Laravel deployment with dokku</title>
      <dc:creator>Meng Ly</dc:creator>
      <pubDate>Thu, 19 Sep 2024 14:23:45 +0000</pubDate>
      <link>https://dev.to/meng_ly_5f07a38c932b97230/laravel-deployment-with-dokku-50lp</link>
      <guid>https://dev.to/meng_ly_5f07a38c932b97230/laravel-deployment-with-dokku-50lp</guid>
      <description>&lt;h1&gt;
  
  
  Deploy Laravel With Dokku
&lt;/h1&gt;

&lt;h1&gt;
  
  
  1. Dokku
&lt;/h1&gt;

&lt;p&gt;Dokku as a special helper that takes your favorite toys and puts them in a big play area so you and your friends can play with them whenever you want.&lt;/p&gt;

&lt;h1&gt;
  
  
  2. Dokku Installation
&lt;/h1&gt;

&lt;h3&gt;
  
  
  System Requirement
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Operating Systems&lt;/li&gt;
&lt;li&gt;Ubuntu 20.04/22.04&lt;/li&gt;
&lt;li&gt;Debain 10+ x64&lt;/li&gt;
&lt;li&gt;Min 1GB of system Memory
# 3. Install Dokku
To install the latest stable version of Dokku, you can run the following shell commands:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget -NP . https://dokku.com/install/v0.34.4/bootstrap.sh
sudo DOKKU_TAG=v0.34.4 bash bootstrap.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  4. Administrator to Dokku
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Add SSH key
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat ~/.ssh/authorized_keys | dokku ssh-keys:add admin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  5.Database on Dokku
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Install MYSQL
&lt;/h2&gt;

&lt;p&gt;To install the mysql plugin, you can run the following shell commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo dokku plugin:install https://github.com/dokku/dokku-mysql.git mysql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  6.Deployment
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Deploy Laravel App to dokku
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Create an app on dokku
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dokku apps:create my-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create database
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dokku mysql:create my-database
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Link database to the app
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dokku mysql:link my-database my-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Setup PHP Buildpack
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Crate file .buildpacks in your project and paste these code
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://github.com/heroku/heroku-buildpack-php
https://github.com/heroku/heroku-buildpack-nodejs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create the Procfile in the project directory
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;release: php artisan migrate --force &amp;amp;&amp;amp; composer dumpautoload web: vendor/bin/heroku-php-apache2 -i php_custom.ini public/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create the php_ custom.ini in the project directory
&lt;/h2&gt;

&lt;p&gt;Enable php plugin&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;upload_max_filesize = 3000M 
post_max_size = 3000M 
memory_limit = 256M 
max_execution_time = 300 
max_input_time = 300 
max_input_vars = 10000 
max_file_uploads = 20 
max_upload_filesize = 3000M
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Config .ENV to the dokku app
&lt;/h2&gt;

&lt;p&gt;Example: mysql://mysql:2f4629asdf309a7d@dokku-mysql-my-database:3306/my_database &lt;br&gt;
Example: DB_CONNECTION://DB_USERNAME:DB_PASSWORD@DB_HOST:3306/DB_DATABASE&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dokku config:set my-app APP_ENV=production 
dokku config:set my-app APP_KEY=yoursecretkeyinserthere 
dokku config:set my-app DB_CONNECTION=mysql 
dokku config:set my-app DB_HOST=dokku-mysql-my-database
dokku config:set my-app DB_DATABASE=my_database
dokku config:set my-app DB_USERNAME=mysql 
dokku config:set my-app DB_PASSWORD=2f4629asdf309a7d
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Setup Domain
&lt;/h2&gt;

&lt;p&gt;Buy a domain name on NameCheap&lt;br&gt;
More details baout domains (&lt;a href="https://dokku.com/docs/configuration/domains/" rel="noopener noreferrer"&gt;https://dokku.com/docs/configuration/domains/&lt;/a&gt;)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dokku domains:set &amp;lt;app&amp;gt; &amp;lt;domain&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Setup HTTPS
&lt;/h2&gt;

&lt;p&gt;More details about letsencrypt (&lt;a href="https://github.com/dokku/dokku-letsencrypt" rel="noopener noreferrer"&gt;https://github.com/dokku/dokku-letsencrypt&lt;/a&gt;)&lt;br&gt;
Documents&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ dokku letsencrypt:help
    letsencrypt:active &amp;lt;app&amp;gt;                Verify if letsencrypt is active for an app
    letsencrypt:auto-renew                  Auto-renew all apps secured by letsencrypt if renewal is necessary
    letsencrypt:auto-renew &amp;lt;app&amp;gt;            Auto-renew app if renewal is necessary
    letsencrypt:cleanup &amp;lt;app&amp;gt;               Cleanup stale certificates and configurations
    letsencrypt:cron-job &amp;lt;--add|--remove&amp;gt;   Add or remove an auto-renewal cronjob
    letsencrypt:disable &amp;lt;app&amp;gt;               Disable letsencrypt for an app
    letsencrypt:enable &amp;lt;app&amp;gt;                Enable or renew letsencrypt for an app
    letsencrypt:list                        List letsencrypt-secured apps with certificate expiry
    letsencrypt:revoke &amp;lt;app&amp;gt;                Revoke letsencrypt certificate for app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What we do&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git 
sudo dokku plugin:update letsencrypt 
dokku letsencrypt:set app-name email 
dokku letsencrypt:enable
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Add remote repository
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git remote add dokku dokku@your_instance_ip:my-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Deploy in just one command
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git push dokku main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Thanks you so much guysss.
&lt;/h1&gt;

</description>
      <category>webdev</category>
      <category>devops</category>
      <category>opensource</category>
      <category>learning</category>
    </item>
  </channel>
</rss>
