Change Domain Name
This commit is contained in:
parent
391721bce9
commit
35014a2879
14
README.md
14
README.md
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
## 修復舊的 logrotate 的bug
|
||||
```sh
|
||||
$ curl http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/fix_logrotate.sh | sh
|
||||
$ curl http://orbitgit.cloud/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/fix_logrotate.sh | sh
|
||||
```
|
||||
|
||||
## 建立 rulingcom 帳號(若已是 rulingcom 帳號,前往下一步驟)
|
||||
|
|
@ -23,7 +23,7 @@ $ exit; exit # 第一次 exit 退回 root 帳號,第二次 exit 退回剛登
|
|||
## 下載裝機script並執行(除了需執行下一步驟的移機外,其他內容不用再執行)
|
||||
|
||||
```sh
|
||||
$ wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/install_orbit_environment.sh -O install_orbit_environment.sh
|
||||
$ wget http://orbitgit.cloud/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/install_orbit_environment.sh -O install_orbit_environment.sh
|
||||
$ chmod +x install_orbit_environment.sh
|
||||
$ source install_orbit_environment.sh #請使用要執行網站的user(須為具有sudo權限之帳號)來執行,執行後會需要輸入user密碼
|
||||
## 以下其他內容均不需執行,可直接進行架站或移機
|
||||
|
|
@ -32,14 +32,14 @@ $ source install_orbit_environment.sh #請使用要執行網站的user(須為具
|
|||
## 轉移網站資料 - 1 (把資訊不直接放在command line上,避免資訊存到log中)
|
||||
|
||||
```sh
|
||||
$ wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/move_site_interactive.sh
|
||||
$ wget http://orbitgit.cloud/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/move_site_interactive.sh
|
||||
$ bash -i move_site_interactive.sh
|
||||
```
|
||||
|
||||
## 轉移網站資料 - 2 (把資訊放在command line)
|
||||
|
||||
```sh
|
||||
$ wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/move_site.sh
|
||||
$ wget http://orbitgit.cloud/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/move_site.sh
|
||||
# 請依照您的需求替換以下這行的變數成實際的值
|
||||
$ bash -i move_site.sh $ip $port $user $remote_pass $domain $your_local_password
|
||||
```
|
||||
|
|
@ -53,11 +53,11 @@ sudo apt install libgmp-dev ##此套件為nokogiri相依套件
|
|||
## 安裝 Nginx 1.23.1及更新openssl(至少保持1.1.1以上)
|
||||
|
||||
```sh
|
||||
$ wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/install_nginx.sh -O install_nginx.sh
|
||||
$ wget http://orbitgit.cloud/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/install_nginx.sh -O install_nginx.sh
|
||||
$ bash install_nginx.sh
|
||||
# 若要安裝modsecurity WAF(網路應用程式防火牆),則加入參數 --install-modsecurity
|
||||
# $ bash install_nginx.sh --install-modsecurity
|
||||
$ sudo wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/orbit_nginx -O /etc/nginx/orbit_sites/xxx_ooo # 建立網站 nginx 設定檔,xxx 為學校縮寫,ooo 為系所、單位縮寫。內容參考附註 nginx 設定檔
|
||||
$ sudo wget http://orbitgit.cloud/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/orbit_nginx -O /etc/nginx/orbit_sites/xxx_ooo # 建立網站 nginx 設定檔,xxx 為學校縮寫,ooo 為系所、單位縮寫。內容參考附註 nginx 設定檔
|
||||
```
|
||||
## 設定host IP(避免VM抓不到domain對應的IP)
|
||||
```sh
|
||||
|
|
@ -80,7 +80,7 @@ $ ssh-add ~/.ssh/your_private_key
|
|||
|
||||
### 二、安裝 R4.5 Web App
|
||||
```sh
|
||||
$ git clone http://gitlab.tp.rulingcom.com/orbit_chiu1/orbit4-5.git your_site_name
|
||||
$ git clone http://orbitgit.cloud/orbit_chiu1/orbit4-5.git your_site_name
|
||||
$ cd your_site_name
|
||||
$ vim config/mongoid.yml # 所有 orbit_4_5 換成 your_site_name, :wq 存檔離開
|
||||
$ vim Gemfile # 加井字號註解掉 gem 'sassc-rails', '~>1.3.0' 並拿掉此行 #gem 'sass-rails', '~> 4.0.2' 井字號取消註解
|
||||
|
|
|
|||
Loading…
Reference in New Issue