Code Monkey home page Code Monkey logo

rwa-21_22's Introduction

RWA-21_22

Postavljanje git repozitorija

Naredbe

  • git init (inicijaliziraj repozitorij)
  • git remote add origin https://github.com/robo58/test_repozitorij.git (dodaj udaljeni repozitorij imena origin)
  • git add . (dodaj sve datoteke unutar trenutnog repozitorija na popis za commit)
  • git commit -m "poruka" (commitaj datoteke sa popisa, odnosno pripremi za slanje sa porukom "poruka")
  • git push origin master (posalji datoteke na udaljeni server origin, na branch master)
  • git pull origin master ( povuci promjene sa brancha master)

Ostale naredbe

  • git checkout -b drugi_branch ( promjeni branch na drugi_branch)
  • git clone https://github.com/robo58/test_repozitorij.git (kloniraj repozitorij lokalno)
  • git status (provjeri trenutni status unutar repozitorija)

Spajanje na server

SSH

Username: rwaXX2022 s tim da je XX broj vase grupe (brojevi od 1-9 pisu 01,02,...,09)

Password: csdigital2022

Isti podaci su za bazu,, ona se nalazi na studenti.sum.ba/phpmyadmin

lista studenata(grupu mozete ovdje vidjeti): https://docs.google.com/spreadsheets/d/1xpEvObWsnbPBizpdvcA6D4fkWpORCronLWr3nLAqqnc/edit#gid=0

url: http://studenti.sum.ba/projekti/rwa/2022/gX (s tim da je X broj grupe)

Putty

Naredbe za server

  • ls (ispis svih datoteka i mapa u trenutnoj mapi)
  • pwd (ispis pune lokacije trenutne mape)
  • cd ime_direktorija ( promjena trenutne mape)
  • cd .. (idi u prethodnu mapu)
  • cd (bez argumenata, vraca nas u nasu home mapu)
  • cp datoteka_za_kopiranje mjesto_za_zalijepit (naredba za kopiranje)
  • mv datoteka novo_mjesto_datoteke (naredba za premjestanje)
  • ln -s datoteka_koju_linkamo ime_linka
  • rm ime_datoteke (brisanje datoteke)

Kreiranje public simboličkog linka

  • Nakon spajanja na server kucamo git clone ime_repozitorija
  • Zatim brisemo stari public pomocu rm -rf public ( -rf su flagovi r i f, r oznacava rekurzivno brisanje, obavezno kad brisemo mape, a f oznacava force brisanje odnosno)
  • Zatim pravimo simbolicki link na nas repozitorij pomocu ln -s ime_repozitorija public
  • Promjena grupe korisnika na www-data, jer je na serveru apache i www-data treba biti grupa na public-u chgrp -R www-data public
  • Ako ste vec koristili neki framework i imate public mapu u vasem repozitoriju, ili build mapu(dist), linkate na tu mapu npr. ln -s ime_repozitorija/public public

Korisni linkovi

rwa-21_22's People

Contributors

robo58 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.