With Node.js installed, put npm run serve
into the console with this directory open to get a version of this website at http://localhost:3000 that should automatically update when you change its code.
There is a file called sponsors.js
inside of src
. You can edit this file based on the examples provided inside it to add new companies to appear on the sponsorship page.
To hide the information for people to sponsor KHE (aka, when we're a week or two out and we close the ability to sponsor us), you can adjust allowSponsorship
inside App.vue
's data.
Logos can be added by putting them inside src/assets/sponsors
and then referencing them as per the example HacksuLogo inside of sponsors.js
Logos can also be used remotely by specifying a link to an already existing asset.
cd /var/www
mkdir kenthackenough-ui-2022
mkdir kenthackenough-ui-2022.git
cd kenthackenough-ui-2022.git
git init --bare
nano hooks/post-receive
Here's the contents of hooks/post-receive
#!/bin/sh
git --work-tree=/var/www/kenthackenough-ui-2022 --git-dir=/var/www/kenthackenough-ui-2022.git checkout -f
cd /var/www/kenthackenough-ui-2022
npm install
npm install --dev
npm run build
chmod +x hooks/post-receive
Add live remote (if you haven't already)
git remote add live ssh://[email protected]/var/www/kenthackenough-ui-2022.git
Push to live
git push live master
# log in with KHE server password. You can find in social accounts/server document.
npm install
npm run serve
npm run build