-
Notifications
You must be signed in to change notification settings - Fork 2
/
Updating_creshwebsite.txt
56 lines (36 loc) · 1.55 KB
/
Updating_creshwebsite.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Precursor- you have set up both computers to talk to github repository
Precursor- you have set PuTTY to login to remote computer
On your computer
## Make changes to app (Rstudio)
## Make changes to the web pages (Brackets)
## Make changes to the images (GIMP)
## REMEMBER IF YOU MAKE CHANGES IN R THAT REQUIRE PACKAGES THEN:
# sudo su - - c "R -e \"devtools::install_github('timeleyportfolio/sweetalertR')\
# sudo su - \-c "R -e \"install.packages('mapview', repos='https://cran.rstudio.com/')\""
# sudo su - \-c "R -e \"devtools::install_github('r-spatial/mapview@develop')\""
go to directory with files
/c/Users/mcherrie/Google Drive/ProjectFiles/CRESHwebmap/alcoholtobacco
git status
git add .
git commit -m "Create a useful message"
git push origin master
now got to the remote computer terminal through putty
go to the same directory of files, should be in:
/srv/shiny-server
git status
git pull origin master
markocherrie, **input normal pass but slightly diff ;) **
### if you have changed the images or html file then
now you want to copy the files to the nginx server (/usr/share/nginx/html)
so you copy images by running:
cp -R images /usr/share/nginx/html
and the html by running:
cd alcoholtobacco
cp index.html /usr/share/nginx/html
Now restart the nginx server for the changes to take effect:
sudo service nginx stop
sudo service nginx start
sudo service nginx restart
### If there are issues with the webmap then most likely it just needs to
### download new security items on a reboot, so copy and paste this from the terminal:
sudo shutdown -r now