-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from TeamSuman/django
Django
- Loading branch information
Showing
4 changed files
with
43 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,42 @@ | ||
#remove the html files | ||
rm *html | ||
# Change sync status in views.py | ||
sed -i "s/sync = False/sync = True/" home/views.py | ||
#making the server up | ||
nohup python manage.py runserver & | ||
# Render the pages and save them | ||
content=`wget -O - http://127.0.0.1:8000/` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/research` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/news` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/positions` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/publication` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/gallery` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/contacts` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/team` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/softwares` | ||
wait | ||
#change sync status in views.py | ||
sed -i "s/sync = True/sync = False/" home/views.py | ||
sync () | ||
{ | ||
#remove the html files | ||
rm nohup.out | ||
rm *html | ||
# Change sync status in views.py | ||
sed -i "s/sync = False/sync = True/" home/views.py | ||
#making the server up | ||
nohup python manage.py runserver & | ||
# Render the pages and save them | ||
content=`wget -O - http://127.0.0.1:8000/` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/research` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/news` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/positions` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/publication` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/gallery` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/contacts` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/team` | ||
wait | ||
content=`wget -O - http://127.0.0.1:8000/softwares` | ||
wait | ||
#change sync status in views.py | ||
sed -i "s/sync = True/sync = False/" home/views.py | ||
|
||
#kill the server | ||
kill -9 $(lsof -t -i:8000) | ||
#kill the server | ||
kill -9 $(lsof -t -i:8000) | ||
} | ||
#export local file to pythonanywhere.com | ||
## rsync -avzhe ssh ./* [email protected]:/home/teamsuman/website/ --exclude "*settings.py" | ||
#import files from pythonanywhere to local repository | ||
## rsync -avzhe ssh [email protected]:/home/teamsuman/website . | ||
|
||
# Sync github account after files are synced.. | ||
sync | ||
git add . && git commit -m "message" && git push origin django |