Skip to content

Instantly share code, notes, and snippets.

@sgress454
Created March 2, 2016 18:27
Show Gist options
  • Save sgress454/8389f2b1bdba520ff904 to your computer and use it in GitHub Desktop.
Save sgress454/8389f2b1bdba520ff904 to your computer and use it in GitHub Desktop.
How to make a repo for reproducing a Waterline issue

The instructions below will work with the regular Git command-line tool or the hub CLI tool (makes things a bit faster).

# Make a new Sails app with a descriptive title
sails new waterline-issue-cant-create-records
cd waterline-issue-cant-create-records

# Install the minimum node modules needed to reproduce the issue, making careful note of versions
# and remembering to use --save
npm install sails-mysql --save

# Now make whichever are the simplest/quickest changes in your app which reproduce the issue,
# and when you for sure have the issue isolated, run:
git init
hub create  # or use the GitHub UI to create the repo and `git remote add` it manually
git add .
git commit -am 'Reproduces issue with creating records'
git push -u origin master
hub browse # or open the repo in your browser manually

# Then copy the URL of the new repo and paste it into your issue post.
# We'll check it out, and since this way we'll be able to experience the problem
# ourselves, we should have no problem getting to the bottom of it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment