Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (27 loc) · 752 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 752 Bytes

Setting up your wikifiles repository

In order for this project to work, you need to create a git repository to store the wiki pages. Assuming you are in the project's directory (r12-team-219), run these commands:

cd ..
mkdir wikifiles
cd wikifiles
git init --bare
cd ..
git clone -l wikifiles wikifiles2
cd wikifiles2
git commit --allow-empty -m "Initial"
git push origin master

At this point, you can delete the wikifiles2 directory if you'd like.

If you'd like to create some test pages, start up a "rails console" and run:

p = Page.new
p.url_path = "test"
p.title = "Test Page"
p.markdown = "This is a test page."
p.author = User.first
p.save

You should now be able to load /pages/test.