basic pages
This commit is contained in:
parent
5de9bc5690
commit
7881acc2ff
2
Gemfile
2
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]
|
||||
|
@ -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
|
||||
|
1
app/views/pages/index.haml
Normal file
1
app/views/pages/index.haml
Normal file
@ -0,0 +1 @@
|
||||
%h1 Hello
|
@ -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
|
||||
|
5
config/initializers/high_voltage.rb
Normal file
5
config/initializers/high_voltage.rb
Normal file
@ -0,0 +1,5 @@
|
||||
# config/initializers/high_voltage.rb
|
||||
HighVoltage.configure do |config|
|
||||
config.route_drawer = HighVoltage::RouteDrawers::Root
|
||||
config.home_page = 'index'
|
||||
end
|
@ -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
|
||||
|
14
db/schema.rb
generated
Normal file
14
db/schema.rb
generated
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user