mozilla / openbadges-badgekit

No Longer Maintained
https://badgekit.org
Mozilla Public License 2.0
124 stars 84 forks source link

Role Your own #454

Closed gazzastone closed 10 years ago

gazzastone commented 10 years ago

I am struggling to install this project from any of the guides that are available, Firstly most refer to a schema.sql which appears to be missing from the project.

Also trying to follow the instructions for a vagrant install the box that is referenced is giving a 404 error http://stuff.webmaker.org/devtools/badgekitsuite.box

Any help appreciated

Thanks

SueSmith commented 10 years ago

Hi there

Afraid I can't help with the vagrant part but hopefully can with the database problem. The schema.sql was used in a previous version of BadgeKit API - it's been replaced with a database migration script you can find at bin/db-migrate (in badgekit-api). The self-hosting guide should be up to date on the installation process: https://github.com/mozilla/openbadges-badgekit/wiki/BadgeKit-Self-Hosting-Guide

This branch of the API also has the updated guidance https://github.com/mozilla/badgekit-api/tree/doc-tidy

Hope that helps!

gazzastone commented 10 years ago

I have been following the guide and have got as far as creating the database ok, after entering bin/db-migrate up nothing happens and no tables get created. if I enter bash bin/db-migrate up I get line 3 syntax error near unexpected token '('

I might add that I have no experience with Linux boxes so am following the instructions blindly :-)

gazzastone commented 10 years ago

ok have solved that on my installation node.js command name is nodejs rather then node, I modified the first line of db-migrate #!/usr/bin/env node to #!/usr/bin/env nodejs and the script ran fine by not having the command name 'node' is it going to create problems for me going forward if so any suggestions please

SueSmith commented 10 years ago

Ah thanks for the update, wasn't sure what to suggest :confused: