Yobi d2 naver(create)

Preview:

Citation preview

Installation Yobi Git( D2 Naver )

Lay Bunnavitou

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

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

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

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

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)

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

Check for make sure

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

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

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

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)

check

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! **

BackupCopy the below file and directories to another place.

file: yobi.h2.dbdirectory: repo, uploads

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

For Window platform

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

double click to install

you will get this three feature

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

it means that git command is working

after you login

create new project

Example Create Git

after create u will see this screen

to configure

you will see this command

Or you can follow my step

$ cd /path/to/your/project$ git clone http://vitou@172.20.20.254:9000/vitou/YomanTest$ git init$ git remote add origin http://vitou@172.20.20.254: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

Here you the result

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/

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

-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

-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.

Upload Project to Git by Script File

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