4th Practical Class:
Hello, Project Server!
General Info
- Each team member will receive email with SSH access to team project user on server.
- one team project username with one password is shared in team
- Only difference from your normal SSH user is that project is located in different folder:
- normal user:
- team project user:
Project Template
- There is an initial project template set for you in when you SSH to team project user
- please use it as initial project template
- you can edit most of the code, but server is expecting some basic folder structure and some configuration
- your server may break if you:
- rename or delete / folders
- change some scripts / config in files
- installing NPM dependencies is ok ;)
- remove some files
- (take more caution when editing those files)
- your server may break if you:
- You can use SSH to edit the team project code, but suggested method is:
- each team should have its own repository given by POs on gitlab
- push generated project template to given repository
- each team member is working locally on clone of the repo
- contributions to project are done using Pull Requests
- you update team project on server using from / branch
- info and project development recommendations should be in the projects readme file
Production Builds / Update Server
- To create production build of frontend run in folder
- open: https://frontend--vse.handson.pro/ to see production frontend (it's same URL, but without prefix)
- production frontend is faster!
- To update backend server you have to run in folder
- backend is always a production build (even with prefix in URL)
Initial Project Installation
-
connect to server using team's SSH
-
run following commands:
-
connect to server using team project user and edit
- use file as basic template
- don't change value in (it may break the server)
-
in set:
- with some random string
- , , and with values you received in team email
-
example :
-
run following commands:
-
open:
- https://dev-frontend--vse.handson.pro/
- https://dev-backend--vse.handson.pro/
- (replace with your team username)