A bit of Git, a bit of Ruby and you will get your local hibernate.org served.
Make sure Rake is available. It is often installed per default.
> rake --version
If you get "command not found":
> gem install rake
Make sure Bundler (version >= 1.10) is available. It manages your Ruby gems locally to the project and prevents version conflicts between different Ruby projects. Quoting from the website:
Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.
> bundle -v
If you get "command not found" or a version < 1.10:
> gem install bundler
> git clone [email protected]:hibernate/hibernate.org.git
> cd hibernate.org
Refer to this guide
> rake --tasks
This will list the available tasks with a short description
You need to use bundle exec <command>
to make sure you get all required Gems. Check the Rakefile
to see how the different awestruct calls are wrapped.
Panic! Then completely regenerate the site via:
> rake clean preview
Make sure the user is in the sudo group and install required dependencies for compilation of native extensions:
> sudo dnf -y install gcc-c++ make ruby-devel libxml2-devel libxslt-devel redhat-rpm-config
Note
|
This is required regardless how you proceed from here (provided Ruby version vs RVM) |
> sudo dnf -y install ruby
> gem install rake bundler
Continue here
How to Integrating RVM with gnome-terminal: http://rvm.io/integration/gnome-terminal
How to install RVM (http://rvm.io/rvm/install)
Install the GPG key:
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
Install a stable Ruby version:
curl -sSL https://get.rvm.io | bash -s stable --ruby
git clone in.relation.to
cd in.relation.to
echo "rvm ruby-2.2@global" > .rvmrc
Load the .rvmrc file:
cd ../in.relation.to
Say yes to .rvmrc execution.
Continue here
I cannot get the enviroment up and running. Use Docker! Read how!
The content of this repository is released under the ASL 2.0.
By submitting a "pull request" or otherwise contributing to this repository, you agree to license your contribution under the respective licenses mentioned above.
This website uses JBoss Community Bootstrap.