Skip to content

Commit fd35d7b

Browse files
author
Matthew Saginario
committed
updated message, install doc
1 parent 6fafac7 commit fd35d7b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

docs/installation/installation.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ Each of these pieces can be skipped or installed independently either using
5757
built in installers and generators, or manually as explained in the
5858
following sections.
5959

60+
At this point, you're fully installed.
61+
62+
If you're installing into a new rails app, you can run bundle exec foreman start
63+
to start the server, and "app" will display on the top left hand side of the page.
64+
65+
If you're installing into an existing Rails apps, you can run bundle exec foreman start
66+
to start the server, and your app should funcion exactly as it always has. From here, you'll need to
67+
[add a Hypercomponent](#<user-content-adding-a-single-component-to-your-application>)
68+
to have Hyperstack funcionality.
69+
6070
## Summary of Installers and Generators
6171

6272
```

ruby/rails-hyperstack/lib/generators/hyperstack/install_generator.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ def report
164164
unless skip_adding_component?
165165
say "🎢 Top Level App Component successfully installed at app/hyperstack/components/app.rb 🎢", :green
166166
end
167+
if !new_rails_app?
168+
say "🎢 Top Level App Component skipped, you can manually generate it later 🎢", :green
169+
end
167170
unless skip_webpack?
168171
say "📦 Webpack integrated with Hyperstack. "\
169172
"Add javascript assets to app/javascript/packs/client_only.js and /client_and_server.js 📦", :green
@@ -204,7 +207,7 @@ def new_rails_app?
204207
# check to see if there are any routes set up and remember it, cause we might add a route in the process
205208
@new_rails_app ||= begin
206209
route_file = File.join('config', 'routes.rb')
207-
count = File.foreach(route_file).inject(0) do | c, line |
210+
count = File.foreach(route_file).inject(0) do |c, line|
208211
line = line.strip
209212
next c if line.empty?
210213
next c if line.start_with?('#')

0 commit comments

Comments
 (0)