This is a journal that I'm using to document thoughts and events as I come across them.
Every instance can only be used by the creator through a login username and password which can be found at /app/controllers/application_controller.rb
.
If you want your journal to be open to everyone, comment out Line 2: http_basic_authenticate_with :name => "", :password => ""
This is a Rails application so you must have Ruby on your system.
To use this, follow these steps:
- clone the repository
- install Ruby and Rails if you don't have it on your system
- Run
bundle install
- Run
rails db:migrate
- if you get an error saying
personal_blogs_development
does not exists- run
rails db:create
- run
- if you get an error saying the db already exists
- run
rails db:drop
- run
- if you get an error saying
- Run
rails s
orrails server
to view it on your localhost
If you want to deploy it to Heroku, follow these steps:
- create your heroku account
- install the heroku CLI
- in your CLI run
heroku login
- sign in with your credentials
- to create your dyno instance run
heroku create
- this creates an instance for you with a randomly generated name
- to rename your app run
heroku rename <new-name>
- now point your git remote to Heroku with
heroku git:remote <app-name>
- add all the changed files to git with
git add .
- commit them
git commit -am '<Message>'
- finally push your code to heroku with
git push heroku master