Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
added troubleshooting section
Browse files Browse the repository at this point in the history
  • Loading branch information
fcoury committed Oct 31, 2012
1 parent 1bc863e commit 657117a
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 3 deletions.
1 change: 1 addition & 0 deletions .rvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rvm use 1.9.3
2 changes: 1 addition & 1 deletion content/stylesheets/sass/account.sass
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
code
font-size: 1.2em
font-size: 1.2em
9 changes: 9 additions & 0 deletions content/stylesheets/sass/application.sass
Original file line number Diff line number Diff line change
Expand Up @@ -621,3 +621,12 @@ form.simple_form
code
font-size: 1.2em

.entry
border-bottom: 1px #ccc solid
margin: 10px 0 10px 0
padding: 0 0 0 20px

.first
margin-top: 20px
padding-top: 10px
border-top: 1px #ccc solid
7 changes: 6 additions & 1 deletion content/stylesheets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,9 @@ td.description {
td.example {
width: 35%;
text-align: left;
}
}

.entry {
border-bottom: 1px #ccc solid;
margin: 10px 0 10px 10px;
}
63 changes: 63 additions & 0 deletions content/troubleshooting.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
title: Troubleshooting
---

%h2 Troubleshooting

%p
Here we list some common issues with Rapp and the way to solve them.

.entry.first
%b Problem:
%p
%b Error "ActionView::Template::Error (some_resource isn't precompiled)"
%b Solution:
%p
You forgot to precompile your assets. Either log into your Webby
via SSH and precompile your assets:

%pre
%code
:preserve
$ cd /var/rapp/my_application
$ RAILS_ENV=production bundle exec rake assets:precompile

.entry
%b Problem:
%p
%b Error "Could not find a JavaScript runtime."
%br
%b Solution:
%p
Your application is missing a JavaScript runtime. A list of runtimes can
be found here:
#{link_to "https://github.com/sstephenson/execjs", "https://github.com/sstephenson/execjs"}.

%p
You can take two approaches - one is adding the gem
%b therubyracer
to your application's
%b Gemfile
and pushing it again:

%pre
%code
:preserve
source :rubygems

(...)
gem 'therubyracer'
(...)

%p
The other is #{"<b>installing node.js</b>"} on your local machine. You can do that
by running the following:

%pre
%code
:preserve
$ sudo apt-get install -y python-software-properties
$ sudo add-apt-respository ppa:chris-lea/node.js
$ sudo apt-get update
$ sudo apt-get install node.js npm

2 changes: 1 addition & 1 deletion layouts/default.haml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
%li= link 'Publishing'
%li= link 'Updating'
/ %li= link 'Workflow'
/ %li= link 'Troubleshooting'
%li= link 'Troubleshooting'
/ %li= link 'Deleting'
%li Workflow
%li Troubleshooting
Expand Down

0 comments on commit 657117a

Please sign in to comment.