- From the
~/vagrant-lamp/directory on your Mac- Run
ansible-playbook ansible/playbooks/vagrant/site/static.yml - Name the site
your-github-username.dev` with your GitHub user name. - Copy any .html files you want to host into
~/vagrant-lamp/sites/your-github-username.dev/public - Create folders for assets like
css,js,img. Populate them as necessary.
- Run
- Create a new repository on GitHub
- The repo must be named exactly as your GitHub username followed by .github.io
- If your username is
testUserthen the repo should be namedtestUser.github.io - Follow the directions for adding a new project. They look like this:
- Do
git initfrom~/vagrant-lamp/sites/<github-username.dev>/publicfolder on your Mac. - Use your own username here:
git remote add origin [email protected]:<github-username>/<github-username>.github.io.git git add <filename>orgit add -Ain order to add your desired files.git commit -m "first commit"git push -u origin master
- Do
- Navigate to
http://<yourUserName>.github.ioand test it out!