spred
(dev)
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, 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.
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/acter/spred/index.html
Installation
remotes::install_gitlab('dreal-pdl/csd/acter/spred', host = "gitlab-forge.din.developpement-durable.gouv.fr")
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.
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 ;)"
Actuelement le package se limite à la prise en charge du protole FTP.
V0.0.1
Note : aucun test unitaire n’est effectué.
Projet en développement !
Project in development!