Common libraries to kick off the project
https://tailwindcss.com/docs/guides/nextjs
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Common libraries to kick off the project
https://tailwindcss.com/docs/guides/nextjs
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
web: bundle exec puma -C config/puma.rb | |
webpack: bin/webpack-dev-server | |
livereload: watchexec -w app/views touch app/javascript/packs/application.js |
First, Create a folder inside of lib
called seeds
Put your CSV file example.csv
into the lib/seeds
folder. In the example below, the file is called real_estate_transactions.csv
Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.
const MY_DOMAIN = "agodrich.com" | |
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2" | |
const DISQUS_SHORTNAME = "agodrich" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", |
Cheat Sheets are greate but they are not a substitute for learning the framework and reading the documentation as we most certainly have not covered every potential example here. Please refer to the Rails Command Line Docs for more information.
You can get all of this information on the command line.
rails generate
with no generator name will output a list of all available generators and some information about global options.
rails generate GENERATOR --help
will list the options that can be passed to the specified generator.
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Thrive Ministry Hub</title> | |
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet"> | |
<style type="text/css"> | |
/* Make this awesome on mobile */ | |
@media only screen and (max-device-width: 480px) { |
Prepare your RDS instance and [authorize access to it][1] (basically make it public).
Put your app in maintenance mode:
heroku maintenance:on
Save the latest SQL dump of the DB:
# for redirecting hhtp traffic to https version of the site | |
server { | |
listen 80; | |
server_name example.com; | |
return 301 https://$server_name$request_uri; | |
} | |
# for redirecting to non-www version of the site | |
server { | |
listen 80; |
window.intercomSettings = { | |
app_id: "APP_ID", | |
hide_default_launcher: true, | |
email: '<%= current_user.email %>', | |
name: '<%= current_user_full_name %>', | |
first_name: '<%= current_user.first_name %>', | |
last_name: '<%= current_user.last_name %>', | |
user_hash: '<%= OpenSSL::HMAC.hexdigest("sha256", ENV["INTERCOM_SECRET"], current_user.id.to_s) %>', | |
created: '<%= current_user.created_at %>', | |
avatar: { |
Afghanistan | |
Albania | |
Algeria | |
Andorra | |
Angola | |
Antigua & Deps | |
Argentina | |
Armenia | |
Australia | |
Austria |