33
Installation Yobi Git ( D2 Naver ) Lay Bunnavitou

Yobi d2 naver(create)

Embed Size (px)

Citation preview

Page 1: Yobi d2 naver(create)

Installation Yobi Git( D2 Naver )

Lay Bunnavitou

Page 2: Yobi d2 naver(create)

Agenda1. Check JDK Version

2. Download playframework

3. Unzip and Change directory

4. Download Yobi

5. Run Play Framework

6. Type start command

7. Connect with Browser

8. Upgrade Yobi

9. Backup

10. Check Git Installation

11. Example Create Project on Git Yobi

12. Git Edu

13. Upload Project to Git by Script File

Page 3: Yobi d2 naver(create)

Check JDK Version+Go to Teminal(Mac) or cmd(Window) and type command below :

java -versionjavac -version

—>JDK version 7(1.7) is required.

image 1.1

on window also > java -version

Page 4: Yobi d2 naver(create)

Download playframework

+Go to Teminal(Mac) or cmd(Window) and type command below :

curl -O http://downloads.typesafe.com/play/2.1.0/play-2.1.0.zip

or wget http://downloads.typesafe.com/play/2.1.0/play-2.1.0.zip

or using web browser (for windows)

http://downloads.typesafe.com/play/2.1.0/play-2.1.0.zip

image 1.2

Page 5: Yobi d2 naver(create)

Unzip and Change directory+Go to Teminal(Mac) or cmd(Window) and type command below :

unzip play-2.1.0.zip

or

unzip by your self using double click

+And then go in that diectory

$cd play-2.1.0

image 1.3

Page 6: Yobi d2 naver(create)

Download Yobi+ Case1. using [git client](http://git-scm.com/) (recommended) git clone https://github.com/naver/yobi.git

or

+ Case2. Just download latest stable releaseIf you want to download one of the stable releases, you can download a compressed file by clicking the URL below. And then name it a yobi and unzip it.

https://github.com/naver/yobi/archive/master.zip **Caution! in case2, You might come across troubles when you try to upgrade Yobi.**

> You can locate your own Yobi directory in any other place. Please note that you must add playframework home path to $PATH environment in that case.

—>Change directory to cloned Yobi directory (or cd to your unzipped file directory)

Page 7: Yobi d2 naver(create)

Download Yobi (Cont.)

image 1.4

image 1.5 (web browser)

+Go to Teminal(Mac) or cmd(Window) and type command below :(go in to that diectory) $cd yobi

Page 8: Yobi d2 naver(create)

Check for make sure

Page 9: Yobi d2 naver(create)

Run Play Framework+Go to Teminal(Mac) or cmd(Window) and type command below :

../play

or (for windows)

..\play

Required files will be download automatically. In the first time, it may take about 10 min or more.

image 1.6

Page 10: Yobi d2 naver(create)

Type start command start -DapplyEvolutions.default=true -Dhttp.port=9000

It will downloaded addtional files and compile sources.

If you want to run Yobi in development mode, use **run**. You can see more detailed errors and can use dynamic compilation.

Also, you can configure start options.If your system's memory is over than 4G, we recommend to use follow options.

_JAVA_OPTIONS="-Xmx2048m -Xms1024m" play "start -DapplyEvolutions.default=true -Dhttp.port=9000"

image 1.7

Page 11: Yobi d2 naver(create)

Type start command (Cont.)

and if you see this all texts it works

OR

you write “run” command to start

it will run default port 9000

Page 12: Yobi d2 naver(create)

Connect with Browser• your PC IP with port default

“9000”http://172.20.20.254:9000/

http://localhost:9000/or

If you want to change port, check your permission to use 80 port

See [http://www.playframework.com/documentation/2.1.1/Production](http://www.playframework.com/documentation/2.1.1/Production)

Page 13: Yobi d2 naver(create)

check

Page 14: Yobi d2 naver(create)

Upgrade YobiCase1. using git client (recommended)In installed directory, just type git update command.

git pull https://github.com/naver/yobi.git master

Case2. download zip file

In installed directory, download latest release file and unzip it.

https://github.com/naver/yobi/archive/master.zip

** Be careful! Don't overwrite or delete `yobi.h2.db` file, `repo` & `uploads` directory! **

Page 15: Yobi d2 naver(create)

BackupCopy the below file and directories to another place.

file: yobi.h2.dbdirectory: repo, uploads

Page 16: Yobi d2 naver(create)

Mac : Terminal > $git initif Mac already exist it won’t ask to install but if not it will show this alert

you make sure that Xcode has been installed in your mac

and just follow this alert by click and you will get it

Check git installation

Page 17: Yobi d2 naver(create)

For Window platform

https://git-scm.com/download/winlink to this URL for download and install :

double click to install

Page 18: Yobi d2 naver(create)

you will get this three feature

Page 19: Yobi d2 naver(create)

so i choose one is git CDM and test it by > git help

it means that git command is working

Page 20: Yobi d2 naver(create)

after you login

create new project

Example Create Git

Page 21: Yobi d2 naver(create)
Page 22: Yobi d2 naver(create)

after create u will see this screen

to configure

Page 23: Yobi d2 naver(create)

you will see this command

Page 24: Yobi d2 naver(create)

Or you can follow my step

$ cd /path/to/your/project$ git clone http://[email protected]:9000/vitou/YomanTest$ git init$ git remote add origin http://[email protected]:9000/vitou/YomanTest

—>copy your Xcode project to that folder and add all files to git

$ git add —all$ git commit -m ‘first commit ever man'$ git push -u origin master

Page 25: Yobi d2 naver(create)

Here you the result

Page 26: Yobi d2 naver(create)

you can clone and commit pull and push to that git (the same)

and if you want to public git. you must by ID public from ISP provider and set it up like github.com or http://git.smart.webcash.co.kr/

Page 27: Yobi d2 naver(create)

Git Education-git clone -b bname urlgit newfoldername: clone project with branch name and make new foldername.

- git push origin --delete <bName> : delete branch remote

Page 28: Yobi d2 naver(create)

-git diff HEAD :show changes between commits and tree etc-git reset 1.txt : go ahead and remove that file

-git checkout —1.txt : go ahead and get rid of all the changes since the last commit for filename

-git branch bname : create new branch name

-git checkout bname : switch to branch

-git rm ‘*.txt’ : remove file or folder

-git merge bname: merge 2 branch together

-git branch -d bname: to delete a branch Local

-git push : just push git

Page 29: Yobi d2 naver(create)

-git clone -b bname URL : checkout with specific branch -git cmmit filename -m ‘cmt’ : commit on one file -git checkout CommitID : for checkout on specific commit

Ex.

Page 30: Yobi d2 naver(create)

Upload Project to Git by Script File

Page 31: Yobi d2 naver(create)

1 . Copy the Script to your Project

2 . run the Script by using $sh ScrpitName

it will ask you exit or continue just text 1 and input the project URL

Page 32: Yobi d2 naver(create)
Page 33: Yobi d2 naver(create)