Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Updated development environment #285

Merged
merged 3 commits into from
Apr 13, 2016
Merged

chore: Updated development environment #285

merged 3 commits into from
Apr 13, 2016

Conversation

atruskie
Copy link
Member

  • changed default paths in default.yml to isolate to environment
    (otherwise tests wipe out caches for development environments)
  • added a google maps key stub to prevent the script templater from
    erroring
  • changed seeds.rb so that whenever db:setup is run it force resets the
    details (for those users in particular we want them to always have a
    known state)
  • Updated readme.md to deal with the realities of guard and filesystem
    polling events
  • Added style guide link to documentation
  • changed the windows nfs config to map the nfs mount to the vagrant
    user
  • changed the vagrant VM memory default to 1.5GB of RAM (ran out of
    space while running dev server and running tests)

- changed default paths in default.yml to isolate to environment
(otherwise tests wipe out caches for development environments)
- added a google maps key stub to prevent the script templater from
erroring
- changed seeds.rb so that whenever db:setup is run it force resets the
details (for those users in particular we want them to always have a
known state)
- Updated readme.md to deal with the realities of guard and filesystem
polling events
- Added style guide link to documentation
- changed the windows nfs config to map the nfs mount to the vagrant
user
- changed the vagrant VM memory default to 1.5GB of RAM (ran out of
space while running dev server and running tests)
if User.where(user_name: 'Admin').first.blank?
admin = User.new
else
admin = User.where(user_name: 'Admin').first
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do the user attributes need to be reset every time the database is seeded?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this mainly to help me setup a database which I had copied off staging. My logic follows

  • seed is only run at initial db:setup at the moment
  • the password seed may not be the same, meaning logins won't work. Useful to reset these accounts
  • changing the behavior makes db:seed useful for setting the state of the database to a desired state. Admin/harvester should always have the email and password from settings

I thought these changes were useful to keep. Main reason for this whole PR 😄

@cofiem cofiem merged commit fe6bc43 into develop Apr 13, 2016
@cofiem cofiem deleted the dev-env-fixes branch April 27, 2016 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants