zhe41223118/cp2023

  • Home
    • SMap
    • reveal
    • blog
  • About
  • w15
    • try Do
    • ANS 1
    • ANS 2
  • w13
    • step 1
    • step 2
    • step 3
    • bad
  • w12
  • w11
  • w8
  • w7
    • Hello
    • Hello 迴圈與重複
    • Hellogd2
    • korea
  • w4-w5
    • INFO
    • mass-spring-damper
    • Euler Method
  • replit
    • part 1
    • part 2
    • part 3
  • set wifi
  • work
  • program
  • file
  • w17
  • Brython
w11 << Previous Next >> w7

w8

遠端與倉儲帳號連接

chmod u+x acp

mkdir public_html

cd public_html

git clone --recurse-submodules https://github.com/zhe41223118/cp2023.git

vi acp

#! /bin/bash
git add .
git commit -m "$1"
git push
cd ./../public_html/cp2023
git pull

必須根據這裡的說明設定目錄權限.

ubuntu@www:~$ chmod 711 /home/ubuntu
ubuntu@www:~$ mkdir ~/public_html
ubuntu@www:~$ chmod 755 ~/public_html
ubuntu@www:~$ vi ~/public_html/index.html

帳號根目錄 (user directory) 必須設定 .gitconfig

https://s1511.cycu.org:8022 

https://s1511.cycu.org/~cp41223118/cp2023 

之後只需用putty.exe檔案連接到s.cycu.org進入到自己的遠端帳號,輸入python3 server.py&,

這樣遠端就會一直啟動,要檢查有沒有啟動as -azo pid,comm,uname |grep "python3"。

 


w11 << Previous Next >> w7

Copyright © All rights reserved | This template is made with by Colorlib