Skip to content

Hacktech Website: How to's

Ziyan Mo edited this page Dec 15, 2019 · 3 revisions

Welcome to the hacktechpy.io!

The server is being served from /home/hacktech/hacktechpy.io/. To update the live website, make changes from your local machines, and just do git pull from that above folder.

At this point, you should have gotten the key pair from the previous webmaster. If not, contact me at moziyan414@gmail.com

The following is a list of things that should be done each year before applications open.

  • Early December -- go into /home/hacktech/hacktechpy.io/hacktech/modules/applications/resumes

    • rm *
  • Early December -- go into /home/hacktech/hacktechpy.io/hacktech/cur_year.py and change the year.

  • To update the application date, go into /home/hacktech/hacktechpy.io/hacktech/cur_year.py.

  • Early December -- go into the database with mysql -u hacktech -p hacktech2020 < sql/yearly_script.sql. Enter in the email password. This will remove all applications from the DB so we can fill it with newer ones this year.

  • Early December -- when everything above is done, make the website live by using the key to login

ssh -i hacktech.pem ec2-user@ec2-54-193-49-66.us-west-1.compute.amazonaws.com

Become root and restart

sudo -i
cd /home/hacktech/hacktechpy.io/
git pull
sudo systemctl restart httpd
  • To view error logs of the server, become root and go to
sudo -i
/var/log/httpd/error_log

Clone this wiki locally