XRLAB

A Laboratory Focus on Intergrated Disaster Risk Reduction and Resilience by Applying 3S and 3R Technology

Build web 如何配置R网站

TBW / 2021-03-05


本地环境配置

  1. R

  2. Rstudio

  3. Git

git config –global user.name “bwtian”

git config –global user.email “

网络环境配置

github

org地址:https://github.com/tianlab public仓库:tianlab.github.io

域名环境配置

部署环境配置

#!/bin/sh

#echo -e “\033[0;32mDeploying updates to GitHub…\033[0m” # for windows, or mac error

Go To Public folder

cd public # Add changes to git. git pull git add .

Commit changes.

msg=“rebuilding site date” if [ $# -eq 1 ] then msg=“\(1" fi git commit -m "\)msg”

Push source and build repos.

git push origin master

git push # Come Back up to the Project Root cd ..