-
Notifications
You must be signed in to change notification settings - Fork 0
/
mackaton
67 lines (50 loc) · 1.6 KB
/
mackaton
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# install rvm (single-user mode) !!! NO SUDO !!!
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
#add the following to your .bashrc file
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
#reload bash
#zlib might be missing
rvm pkg install zlib
#install sqlite3
sudo apt-get install libsqlite3-dev
#for rails server
sudo apt-get install libssl-dev
#for heroku
sudo apt-get install libreadline-dev
#install the latest ruby
rvm install ruby-1.9.3-p125
rvm use 1.9.3 --default
# verify
ruby -v
#install rails
gem update --system
gem install rails
#git setup
sudo apt-get install git
git config --global user.name "Your Name"
git config --global user.email [email protected]
git config --global alias.co checkout
#for git's editor I've used leafpad - which will be used to add commit messages, because gedit is my editor i'll be working in
sudo apt-get install leafpad
git config --global core.editor leafpad
#for the automated testing
sudo apt-get install libxml2 libxml2-dev libxslt1-dev
#and follow the instructions here
http://automate-everything.com/2009/08/gnome-and-autospec-notifications/
# By now you should have a working development environment
#TEST the environment
#create a rails project
rails new app_name
#include this in your Gemfile (needed for rails server to work)
gem 'therubyracer'
#get gems
bundle install
#launch the server and it should work
rails server
#initialize git in your projects folder
git init
#add all files
git add .
#commit
git commit -a -m "Initial commit"