spred
(dev)
Spread Your Wings And Your Apps Easily With Ce package à pour objectif de permettre de deployer facilement vos contenus sur des servers distants, via les protocoles ftp, sftp, samba, scp et ssh git.
This package aims to allow you to easily deploy your content to remote servers, with ftp, sftp, smb, scp and ssh git protocols.
Installation
remotes::install_gitlab('dreal-pdl/csd/acter/spred', host = "gitlab-forge.din.developpement-durable.gouv.fr")
Example
Ci-dessous un exemple d’usage de spred
pour un déploiement FTP.
library(spred)
## 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 the existing one without deleting it.)"
#> [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 the existing one without deleting it.)"
#> [1] "success: Deployment completed. Spred your wings ;)"
Actuelement le package se limite à la prise en charge du protole FTP.
V0.0.0.9000
Note : aucun test unitaire n’est effectué. Projet en développement !