Project

General

Profile

Installing latest code » History » Version 10

Corey Osman, 03/11/2012 01:10 AM

1 1 Romain Vrignaud
h1. Installing latest code 
2 1 Romain Vrignaud
3 1 Romain Vrignaud
Latest stable version can be found under the files section
4 1 Romain Vrignaud
5 1 Romain Vrignaud
h2. Latest source code
6 1 Romain Vrignaud
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 2 Greg Sutcliffe
11 1 Romain Vrignaud
to get latest "development" version do:
12 1 Romain Vrignaud
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 10 Corey Osman
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 5 Ohad Levy
</code></pre>
20 2 Greg Sutcliffe
21 2 Greg Sutcliffe
You can run Foreman with the command "RAILS_ENV=production rails s"
22 2 Greg Sutcliffe
23 2 Greg Sutcliffe
h3. Latest stable version
24 2 Greg Sutcliffe
25 2 Greg Sutcliffe
The old rails2 version still available under a branch
26 1 Romain Vrignaud
27 1 Romain Vrignaud
to get latest "stable" version do:
28 5 Ohad Levy
29 8 Ohad Levy
<pre><code>git clone https://github.com/theforeman/foreman.git -b 0.4-stable
30 1 Romain Vrignaud
cd foreman
31 1 Romain Vrignaud
git submodule init
32 1 Romain Vrignaud
git submodule update
33 1 Romain Vrignaud
</code></pre>
34 1 Romain Vrignaud
35 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.)
36 5 Ohad Levy
37 8 Ohad Levy
<pre><code>git clone https://github.com/theforeman/foreman.git foreman
38 2 Greg Sutcliffe
cd foreman
39 1 Romain Vrignaud
sed -i 's/git:\/\//http:\/\//g' .gitmodules
40 1 Romain Vrignaud
git submodule init
41 1 Romain Vrignaud
git submodule update
42 5 Ohad Levy
</code></pre>
43 1 Romain Vrignaud
44 1 Romain Vrignaud
h3. Daily snapshot
45 1 Romain Vrignaud
46 4 Ohad Levy
You can also fetch the latest daily snapshot of the 0.4 stable version at:
47 1 Romain Vrignaud
http://theforeman.org/foreman-nightly.tar.bz2