diff --git a/Gemfile b/Gemfile index 3268f14..34052c9 100644 --- a/Gemfile +++ b/Gemfile @@ -14,6 +14,8 @@ gem "sassc-rails" gem "net-ssh" gem "haml-rails" +gem 'high_voltage', '~> 3.1' + gem "passenger", ">= 5.3.2", require: "phusion_passenger/rack_handler" # Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] diff --git a/Gemfile.lock b/Gemfile.lock index 8549296..338dd50 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -102,6 +102,7 @@ GEM haml (>= 4.0.6, < 6.0) html2haml (>= 1.0.1) railties (>= 5.1) + high_voltage (3.1.2) html2haml (2.2.0) erubis (~> 2.7.0) haml (>= 4.0, < 6) @@ -248,6 +249,7 @@ DEPENDENCIES capybara debug haml-rails + high_voltage (~> 3.1) importmap-rails mina net-ssh diff --git a/app/views/pages/index.haml b/app/views/pages/index.haml new file mode 100644 index 0000000..ca44ab2 --- /dev/null +++ b/app/views/pages/index.haml @@ -0,0 +1 @@ +%h1 Hello diff --git a/config/deploy.rb b/config/deploy.rb index 623b9e8..41cc3ca 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -30,10 +30,8 @@ set :user, 'feenix' # Username in the server to SSH to. task :remote_environment do # If you're using rbenv, use this to load the rbenv environment. # Be sure to commit your .ruby-version or .rbenv-version to your repository. - # invoke :'rbenv:load' + invoke :'rbenv:load' - # For those using RVM, use this to load an RVM version@gemset. - # invoke :'rvm:use', 'ruby-2.5.3@default' end # Put any custom commands you need to run at setup diff --git a/config/initializers/high_voltage.rb b/config/initializers/high_voltage.rb new file mode 100644 index 0000000..587ea0c --- /dev/null +++ b/config/initializers/high_voltage.rb @@ -0,0 +1,5 @@ +# config/initializers/high_voltage.rb +HighVoltage.configure do |config| + config.route_drawer = HighVoltage::RouteDrawers::Root + config.home_page = 'index' +end diff --git a/config/routes.rb b/config/routes.rb index 262ffd5..09a3a00 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,5 @@ Rails.application.routes.draw do # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html - # Defines the root path route ("/") - # root "articles#index" + root to: 'high_voltage/pages#show', id: 'index' end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..a3b0495 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,14 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# This file is the source Rails uses to define your schema when running `bin/rails +# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to +# be faster and is potentially less error prone than running all of your +# migrations from scratch. Old migrations may fail to apply correctly if those +# migrations use external dependencies or application code. +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema[7.0].define(version: 0) do +end