Alliance Computer Solutions, LLC

Ruby and Rails Development

Web Applications

StepsForFun in beta

Steps for fun is a web application that lets you track the number of steps you take each day. In today's health conscience world, there is a movement for people to be more active. One way is to walk more. It recommended that we should walk 10,000 steps a day.

stepsforfun.com is a web based log where you can log the number of steps you took on a given day.

It has budding social network capability which lets you see how well your friends are doing.

So check it out and let me know what you think.

Welcome to my blog

I wrote this blog software in Ruby on Rails and deployed it to Heroku.

This is by far the easiest way to do ROR. At least from a deployment standpoint. Heroku makes this idiot proof. Believe me when I say that if I can do it, anyone can.

As I develop more applications, I will report here on my trials and tribulations working with ROR and Heroku. So far, Heroku appears to take the pain out of deployment. Hopefully, it will be around for a long time.

Deploy to Heroku

These are my simple steps to deploy an application written in Ruby on Rails to Heroku.

1. mkdir projects
2. cd projects
3. rails blog -d postgresql
4. cd blog
5. git init && git add . && git commit -m "first commit"
6. heroku create - Then develop your app.
7. git push heroku master
8. heroku rake db:migrate
9. heroku open
10. git rm -r -f log
11. git rm -r -f tmp
12. mkdir log
13. echo '*.log' > log/.gitignore
14. git add log
15. echo tmp >> .gitignore
16. git add .gitignore
17. git commit -m "ignore log files and tmp dir"
18. createdb blog_development
19. createdb blog_test
20. createdb blog_production
21. git add .
22. git status # To see what needs to be added and committed.
23. git commit -m "added locations"
24. git push heroku master # Push the latest to heroku
25. heroku rake db:migrate

I'm not sure why but when I did my last updates to remove some un-needed files from the git repo, git wanted me to use this command:

git commit -a -m "Some comment"

I'll have to research why this was so.