Make sure you have git installed and you are logged in on the command line docs
If you haven't already, add a remote to point at this github repository AND to our production server:
git clone [email protected]:mikekauffman/bikes_for_students.git (this will copy the code locally and add a remote to point at it called "origin", so run this command from the directory you want the code to be copied into)
git remote add production https://git.heroku.com/j1rehoboth.git
- Get (pull down) the most recent changes
git pull origin master
-
Open the app's directory in your text editor (I think julie got Atom?)
-
Create your database, migrate the db, and start your rails development server:
rake db:create db:migrate
rails server
Note: You'll only need to migrate once. The db schema has not changed, and most of our storage is happening via google docs anyway.
-
Once your server is running, verify that everything is working locally by visiting http://localhost:3000/ in your browser. It should be an exact replica of the production website.
-
Make changes to the file you want to change
- Main HTML markup can be found at
app/views/pages/home.html.erb
- Styles can be found in
app/assets/stylesheets/application.scss
andscrollin-nav.scss
in the same directory
-
Save the files you have changed and check them in your local server to ensure nothing is broken and your changes are correct.
-
Add and commit those changes to git:
git add -p (this will step you through each chunk of code changes, press y to accept them and n to reject what you don't want to save)
git commit -m 'Some message here describing what changes you made'
git push origin master
- Push the changes into production:
git push heroku master
-
Make sure you didn't break production by visiting j1rehoboth.com once the previous command completes
-
Pat self on back; you did it