Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 7beef3b

Browse files
author
Barrie Hadfield
committed
Heroku tutorial
1 parent e41c253 commit 7beef3b

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

source/_sidenav.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<li class="nav-item"><a href="#manual-rails-install">Manual Rails Install</a></br></li>
2424
<li class="nav-item"><a href="#with-sinatra">With Sinatra</a></br></li>
2525
<li class="nav-item"><a href="#building-with-rake">Building with Rake</a></br></li>
26+
<li class="nav-item"><a href="#deployment">Deployment</a></br></li>
2627
</ul>
2728
<% when current_page.path.include?("tools") %>
2829
<ul class="nav">

source/installation.html.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ title: Installation
33
---
44
# Installation
55

6-
**Note:** The Hyperloop gems are in a process of being renamed. The links below will take you to the correct Github projects but you might find the name of the project does not quite match the name of the gem on this page. This will be addressed over time as the gems are renamed. HyperReact was previously known as Reactrb.
6+
There are several ways to install Hyperloop into your development environment.
7+
8+
+ Experimenting online in the Opal playground
9+
+ Running exclusively in your browser with Hyperloop Express
10+
+ Integrating with the Rails Asset Pipeline
11+
+ Building a single `application.js` with Rake
12+
+ Using NPM and Webpack to require all your JavaScript components
713

814
## Opal Playground
915

@@ -311,6 +317,15 @@ Two things to note about the code above:
311317

312318
As a final note, the resulting JS file may be a little large, so you might want to Gzip or uglify it.
313319

320+
## Deployment
321+
322+
There are a few deployment specific considerations:
323+
324+
+ The resulting compiled JavaScript files can be quite large, so you might want to add a minimise, uglify or gzip step
325+
+ Some free deployment PaaS (Heroku for example) include low levels of memory and system resources. HyperReact may be configured in such a way that it is pre-rendering all pages before they are delivered to the browser and this can be an issue to the PaaS in a low memory environment. If the server is constrained it is better to turn pre-rendering off.
326+
327+
There is a most excellent [Tutorial written by Frederic ZINGG](https://github.com/fzingg/hyperloop-showcase-heroku) which takes you through a step by step guid to deploying on Heroku.
328+
314329
## Next Steps
315330

316331
Check out [the tutorials](/tutorials) to learn more.

0 commit comments

Comments
 (0)