This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate Random Passwords | |
curl 'https://www.random.org/passwords/?num=2&len=24&format=plain&rnd=new' | |
# Create deploy user | |
sudo adduser deploy | |
sudo adduser deploy sudo | |
su deploy | |
cd ../deploy/ | |
# Generate ssh keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /app/views/spina/admin/structure_partables/icons/_form.html.haml | |
.horizontal-form-label | |
= f.object.title | |
.horizontal-form-content | |
= f.fields_for :page_partable, f.object.page_partable do |ff| | |
= ff.text_field :content, class: 'icon-picker', value: 'fa-anchor' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
algoliasearch index_name: "products" do | |
# currently working | |
attribute :id, :product_number, :name, :family_id, :slug, :collection_id, :benefits, :categories | |
# refined indices I would like to have | |
attribute :id, :product_number, :name, :family_id, :slug, :collection_id | |
attribute :benefits do | |
{ id: benefits.id, name: benefits.name } | |
end | |
attribute :categories do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load DSL and Setup Up Stages | |
require 'capistrano/setup' | |
# Includes default deployment tasks | |
require 'capistrano/deploy' | |
# require 'capistrano/rails' | |
# Includes tasks from other gems included in your Gemfile | |
# |