Project

General

Profile

Installing latest code » History » Version 24

Sam Kottler, 08/01/2012 12:29 PM

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 13 Ohad Levy
You will want to make sure that you have one of the mysql-devel, postgresql-devel, and sqlite-devel libraries installed so the database gems can install properly. 
14 19 Florian Koch
also, you would also need gcc ruby-devel, libxml-devel, libxslt-devel and libvirt-devel packages
15 10 Corey Osman
16 8 Ohad Levy
<pre><code>git clone https://github.com/theforeman/foreman.git -b develop
17 1 Romain Vrignaud
cd foreman
18 12 Ohad Levy
# must have the bundler gem installed -- gem install bundle
19 24 Sam Kottler
bundle install --without mysql mysql2  sqlite test --path vendor # or postgresql
20 7 Ohad Levy
cp config/settings.yaml.example config/settings.yaml
21 21 Igor Galić
cp config/database.yml.example config/database.yml
22 18 Ohad Levy
RAILS_ENV=production bundle exec rake db:migrate # (to set up database schema)
23 5 Ohad Levy
</code></pre>
24 2 Greg Sutcliffe
25 23 Ohad Levy
You can run Foreman with the command "./script/rails s -e production"
26 2 Greg Sutcliffe
27 2 Greg Sutcliffe
h3. Latest stable version
28 2 Greg Sutcliffe
29 2 Greg Sutcliffe
The old rails2 version still available under a branch
30 1 Romain Vrignaud
31 1 Romain Vrignaud
to get latest "stable" version do:
32 5 Ohad Levy
33 8 Ohad Levy
<pre><code>git clone https://github.com/theforeman/foreman.git -b 0.4-stable
34 1 Romain Vrignaud
cd foreman
35 1 Romain Vrignaud
git submodule init
36 1 Romain Vrignaud
git submodule update
37 1 Romain Vrignaud
</code></pre>
38 1 Romain Vrignaud
39 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.)
40 5 Ohad Levy
41 8 Ohad Levy
<pre><code>git clone https://github.com/theforeman/foreman.git foreman
42 2 Greg Sutcliffe
cd foreman
43 1 Romain Vrignaud
sed -i 's/git:\/\//http:\/\//g' .gitmodules
44 1 Romain Vrignaud
git submodule init
45 1 Romain Vrignaud
git submodule update
46 5 Ohad Levy
</code></pre>
47 1 Romain Vrignaud
48 1 Romain Vrignaud
h3. Daily snapshot
49 1 Romain Vrignaud
50 4 Ohad Levy
You can also fetch the latest daily snapshot of the 0.4 stable version at:
51 1 Romain Vrignaud
http://theforeman.org/foreman-nightly.tar.bz2