From this tutorial.
Gemfile.rb:
- Rspec-rails to development and test groups
group :development, :test do
gem 'rspec-rails', '~> 3.5'
From this tutorial.
Gemfile.rb:
group :development, :test do
gem 'rspec-rails', '~> 3.5'
This decouples a deployment from completed migrations. Give us control of the data manipulation proccess by encapsulatin it in on place. need to remember to:
ARG ASSET_HOST | |
RUN bundle exec rake ASSET_HOST=${ASSET_HOST} RAILS_ENV=production assets:precompile |
time_namelookup: %{time_namelookup}s\n | |
time_connect: %{time_connect}s\n | |
time_appconnect: %{time_appconnect}s\n | |
time_pretransfer: %{time_pretransfer}s\n | |
time_redirect: %{time_redirect}s\n | |
time_starttransfer: %{time_starttransfer}s\n | |
----------\n | |
time_total: %{time_total}s\n |
{ | |
"Total": 17, | |
"Attachments": [ | |
{ | |
"FileName": "invoice.jpg" | |
} | |
], | |
"LineItems": [ | |
{ | |
"Description": "Sugar", |
#!/bin/bash | |
# Requires azure-cli to be installed | |
source $HOME/.profile | |
if [ "${POSTGRES_HOST}" = "" ]; then | |
if [ -n "${POSTGRES_PORT_5432_TCP_ADDR}" ]; then | |
POSTGRES_HOST=$POSTGRES_PORT_5432_TCP_ADDR | |
POSTGRES_PORT=$POSTGRES_PORT_5432_TCP_PORT |
registry=localhost:32000
repositories=$(curl ${registry}/v2/_catalog)
for repo in $(echo "${repositories}" | jq -r '.repositories[]'); do
echo $repo
tags=$(curl -sSL "http://${registry}/v2/${repo}/tags/list" | jq -r '.tags[]')
for tag in $tags; do
echo $tag
curl -v -sSL -X DELETE "http://${registry}/v2/${repo}/manifests/$(
curl -sSL -I \
# Add color coding based on Rails environment for safety | |
if defined? Rails | |
banner = if Rails.env.production? | |
"\e[41;97;1m #{Rails.env} \e[0m " | |
else | |
"\e[42;97;1m #{Rails.env} \e[0m " | |
end | |
# Build a custom prompt |