LFTP - Deploy an application in command line
Installation
First, we need to install lftp on our system:
Use lftp
Here, we define 3 variables:
$(FTP_USERNAME)
represents the FTP username ; example:alex
$(FTP_PASSWORD)
represents the FTP password ; example:SuperSpiciesMeltingMountains67
$(FTP_HOSTNAME)
represents the FTP host ; example:ftp://alexandre@ftp.cluster473.hosting.domain.net
This line uses lftp
to connect to the ftp server.
The command mirror
is used to synchronize local files and server files together. Here we sync the local ./
directory with the www/
FTP directory.
Manual
If you need more informations, here are the available flags from the manual:
Thank you for reading my post ! I hope it helped !
The SOLID/STUPID principles
Learn what are the SOLID and STUPID principles with examples
Create a Docker Swarm playground
Let's create Docker Swarm playground on your local machine
Setup a Kubernetes cluster with K3S, Traefik, CertManager and Kubernetes Dashboard
Let's setup step by step our own K3S cluster !
Create an Ansible playground with Docker
Let's create an Ansible playground with Docker
Database ACID/BASE - Understanding the CAP Theorem
Learn what is the CAP Theorem in less than 5 minutes !
HashiCorp Vault - Technological watch
Learn what is HashiCorp Vault in less than 5 minutes !
How to internationalize an AstroJS website while maintaining good SEO ?
We will see how to create an implementation of i18n with AstroJS
Remember all the commands of a project with Makefile
We will see how to remember all command of a project & write documentation with Makefile !