Note: You need to have to Heroku PGBackup addon first heroku addons:add pgbackups..
Creates the backup on heroku first:
heroku pgbackups:capture| +__rvm_make:0> make -j4 | |
| CC = gcc | |
| LD = ld | |
| LDSHARED = gcc -dynamiclib | |
| CFLAGS = -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -fno-common -pipe | |
| XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT | |
| CPPFLAGS = -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl@1.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I. -I.ext/include/x86_64-darwin17 -I./include -I. -I./enc/unicode/10.0.0 | |
| DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multipl |
| •100% [I] ➜ rvm get master && rvm list known | |
| Downloading https://get.rvm.io | |
| Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc | |
| Verifying /Users/jpowell/.rvm/archives/rvm-installer.asc | |
| gpg: Signature made Sat Sep 9 15:49:18 2017 EDT | |
| gpg: using RSA key E206C29FBF04FF17 | |
| gpg: Good signature from "Michal Papis (RVM signing) <mpapis@gmail.com>" [unknown] | |
| gpg: Note: This key has expired! | |
| Primary key fingerprint: 409B 6B17 96C2 7546 2A17 0311 3804 BB82 D39D C0E3 | |
| Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36 166B E206 C29F BF04 FF17 |
| #!/bin/bash | |
| # Stop all containers | |
| docker stop $(docker ps -a -q) | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
| # ... | |
| activate :external_pipeline, | |
| name: :webpack, | |
| command: build? ? "npm run build:assets" : "npm run start:assets", | |
| source: ".tmp/webpack_output", | |
| latency: 1 | |
| # ... |
| # Local Dates: | |
| git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.local.tsv.txt | |
| # ISO Dates: | |
| git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.iso.tsv.txt |
| # I use this in conjunction with Contentful CMS to render blocks of markdown into my static middleman templates. | |
| # In your gemfile, add Redcarpet: | |
| gem 'redcarpet' | |
| # ...and do a bundle install | |
| # In your config.rb, add this line: | |
| set :markdown_engine, :redcarpet |
| source 'https://rubygems.org' | |
| ruby '2.3.3' | |
| gem 'rails', '5.0.2' | |
| gem 'mime-types', ['~> 2.6', '>= 2.6.1'], require: 'mime/types/columnar' | |
| gem 'rollbar' | |
| gem 'oj', '~> 2.12.14' | |
| gem 'bourbon', '~> 4.2.0' |
| GIT | |
| remote: https://github.com/InnovativeOperations/kiba.git | |
| revision: 4ec2c0b35c2dacd575b9d518be0b79e9981baef1 | |
| branch: parsing-params | |
| specs: | |
| kiba (1.0.0) | |
| GIT | |
| remote: https://github.com/InnovativeOperations/spree_mail_settings.git | |
| revision: 578dfaef402cfbf604930a149268389de85b515c |
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.