Project

General

Profile

Installing latest code » History » Version 11

Steve Traylen, 03/12/2012 06:10 AM
Add note that db schema must be loaded.

1 1 Romain Vrignaud
h1. Installing latest code 
2
3
Latest stable version can be found under the files section
4
5
h2. Latest source code
6
7 2 Greg Sutcliffe
h3. Latest development code
8 1 Romain Vrignaud
9 2 Greg Sutcliffe
Foreman has now moved to using Rails 3 and Bundler to get up and running. This is the preferred way to get Foreman if you want to benefit from the latest improvements. By using the git repository you can also upgrade more easily. You will need to have Bundler installed manually for now (check your distribution repositories, or install it via rubygems).
10
11 1 Romain Vrignaud
to get latest "development" version do:
12
13 10 Corey Osman
You will want to make sure that you have the mysql-devel, postgresql-devel, and sqlite-devel libraries installed so the database gems can install properly. 
14
15 8 Ohad Levy
<pre><code>git clone https://github.com/theforeman/foreman.git -b develop
16 1 Romain Vrignaud
cd foreman
17 9 Corey Osman
bundle install (must have the bundler gem installed -- gem install bundle)
18 7 Ohad Levy
cp config/settings.yaml.example config/settings.yaml
19 11 Steve Traylen
RAILS_ENV=production rake db:migrate  (to set up database schema)
20 5 Ohad Levy
</code></pre>
21 2 Greg Sutcliffe
22
You can run Foreman with the command "RAILS_ENV=production rails s"
23
24
h3. Latest stable version
25
26
The old rails2 version still available under a branch
27 1 Romain Vrignaud
28
to get latest "stable" version do:
29 5 Ohad Levy
30 8 Ohad Levy
<pre><code>git clone https://github.com/theforeman/foreman.git -b 0.4-stable
31 1 Romain Vrignaud
cd foreman
32
git submodule init
33
git submodule update
34
</code></pre>
35
36 5 Ohad Levy
if you are behind a proxy or firewall and dont have access to github using the git protocol, use http protocol instead (e.g.)
37
38 8 Ohad Levy
<pre><code>git clone https://github.com/theforeman/foreman.git foreman
39 2 Greg Sutcliffe
cd foreman
40 1 Romain Vrignaud
sed -i 's/git:\/\//http:\/\//g' .gitmodules
41
git submodule init
42
git submodule update
43 5 Ohad Levy
</code></pre>
44 1 Romain Vrignaud
45
h3. Daily snapshot
46
47 4 Ohad Levy
You can also fetch the latest daily snapshot of the 0.4 stable version at:
48 1 Romain Vrignaud
http://theforeman.org/foreman-nightly.tar.bz2