Use github action to use CI/CD to deploy automatically your project from Github to your server.
- Git
- SSH
- Github account
| ## Hello World, I'm <a href="https://lambirou.github.io/">Roland Edi</a> ! 👋 | |
| Web / Mobile developer, Web designer. | |
| <a href="https://www.twitter.com/lambirou225"> | |
| <img align="left" alt="Roland Edi Twitter" width="22px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/twitter.svg" /> | |
| </a> | |
| <a href="https://www.linkedin.com/in/rolandedi"> | |
| <img align="left" alt="Roland Edi Linkdein" width="22px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/linkedin.svg" /> |
| <?php | |
| namespace App\Providers; | |
| /** | |
| * Mobile Detect Library | |
| * Motto: "Every business should have a mobile detection script to detect mobile readers" | |
| * | |
| * Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). | |
| * It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment. |
| li.menu-item-object-product_cat { | |
| position: relative; | |
| } | |
| li.menu-item-object-product_cat:before { | |
| position: absolute; | |
| margin-top: 21px; | |
| left: 5px; | |
| content: ""; | |
| width: 8px; |
| <?php | |
| use Illuminate\Container\Container; | |
| use Illuminate\Database\Capsule\Manager as Capsule; | |
| use Illuminate\Database\ConnectionResolverInterface; | |
| use Illuminate\Database\Migrations\DatabaseMigrationRepository; | |
| use Illuminate\Database\Migrations\MigrationRepositoryInterface; | |
| use Illuminate\Database\Migrations\Migrator; | |
| use Illuminate\Events\Dispatcher; |
| name: 🚀 Deploy on push | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build: |
| { | |
| "name": "project-name", | |
| "description": "Template for static sites", | |
| "version": "1.0.0", | |
| "homepage": "http://www.project-name.com", | |
| "author": { | |
| "name": "Adam Reis", | |
| "url": "http://adam.reis.nz" | |
| }, | |
| "license": "UNLICENSED", |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |