Spread Your Wings And Your Apps Easily With spred
Ce package à pour objectif de permettre de deployer facilement vos contenus sur des servers distants, via les protocoles ftp et samba.
This package aims to allow you to easily deploy your content to remote servers, with ftp and smb protocols.
spred means “severals protocols with reduced expressions for deployment”
Site web de présentation du package : https://dreal-pdl.gitlab-pages.din.developpement-durable.gouv.fr/csd/spred/index.html
Installation
remotes::install_gitlab('dreal-pdl/csd/spred', host = "gitlab-forge.din.developpement-durable.gouv.fr")Prérequis système : Sous système Linux, assurez-vous d’avoir installé smbclient pour utiliser les fonctions de déploiement sous protocole Samba.
System Requirements: On Linux, ensure you have installed smbclient to use the Smb protocol deployment features.
Examples
Ci-dessous un exemple d’usage de spred pour un déploiement FTP.
Below is an example of using spred for an FTP deployment.
## basic example code to FTP deploy
#!Not working if FTP_CON_LOC, FTP_URL_LOC and /projet/myapp/ are not defined
## deploiement app shiny via FTP
spred::ftp_deploy(
dirfrom = "./../test_spred",
dirto = "/projet/myapp",
con = Sys.getenv("FTP_CON_LOC"),
url = Sys.getenv("FTP_URL_LOC"),
exept=list(".Rproj.user/",".git/", ".Rhistory",".gitlab-ci.yml",".gitignore","dev/","data/")
)
#> [1] "success: the folder has been successfully cleaned."
#> [1] "success: the folder and its contents were successfully transferred (they overwrote existing ones.)"
#> [1] "success: Deployment completed. Spred your wings ;)"
## deploiement data sur l'app via FTP
spred::ftp_deploy(
dirfrom = "./../test_spred/data/",
dirto = "/projet/myapp/data/",
con = Sys.getenv("FTP_CON_LOC"),
url = Sys.getenv("FTP_URL_LOC"),
waitingpage = list(path="/../",type="en-shiny")
)
#> [1] "success: the folder has been successfully cleaned."
#> [1] "success: the folder and its contents were successfully transferred (they overwrote existing ones.)"
#> [1] "success: Deployment completed. Spred your wings ;)"V0.0.3
Note : aucun test unitaire n’est effectué.
Projet en développement !
Project in development!
