로컬 개발 환경에서 임대 서버 배치까지
로컬 개발 환경에서 Git를 사용하여 대여 서버로 배포하는 프로세스
대략적인 절차
github에서 원격 저장소 만들기
1. 먼저 로그인
https://github.com/login
※ 계정을 만들지 않은 사람은 여기를 클릭

2. NEW 버튼을 눌러 저장소 만들기

3. 저장소 만들기

4. 원격 저장소 주소 복사

초기 Git 설정
1. 우선 이것
$ git init
2.github에서 만든 원격 저장소 등록$ git remote add origin https://github.com/junichi-matsuo/schedule.git
2. github에 등록할 인덱스 파일※ - A로 설정하여 모든 파일 색인
$ git add -A
3. 색인 파일을 로컬로 제출$ git commit -m "first comit"
4. github에 등록$ git push origin master
5. 원격 저장소에 접근하고 등록된 URL 확인
임대 서버 설정
1. 롤리팝에 로그인한다https://lolipop.jp/

2.SSH 설정



Lolipop 사용자 설명서 참조
https://lolipop.jp/manual/user/ssh/
2. 명령줄을 통해 임대 서버에 연결
$ ssh お客様のSSHアカウント名@お客様のホスト名 -p 2222
3. 폴더 이동$ cd web
4. 폴더 만들기$ mkdir ファイル名
5.폴더로 이동$ cd ファイル名
5.git 설정, 원격 저장소 등록, 원격 저장소에서 데이터 가져오기$ git init
$ git remote add origin https://github.com/junichi-matsuo/schedule.git
$ git pull origin master
임대 서버에서 MySQL 설정
일.

2. 사용할 데이터베이스 정보 보기

3. 방금 확인한 데이터베이스 정보로 바꾸기
mysql.php
<?php
define("DB_DATABASE","データベース名");
define("DB_USERNAME","ユーザー名");
define("DB_PASSWORD","パスワード");
define("PDO_DSN","mysql:host=データベースホスト名;dbname=" . DB_DATABASE);
?>
어쨌든
Reference
이 문제에 관하여(로컬 개발 환경에서 임대 서버 배치까지), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/JUM22676603/items/5ecf065bac928ba4d1ee텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)