All output is from the delayed job worker session using the code above.
Delayed::Job.enqueue Jobs::Test.new(raise: true, report_exception: false)
Functions to Full-Stack & Back Again
Learn how thinking big with AWS Lambda and moving to Full-Stack Serverless using Web Application Frameworks could help your company's cloud adoption & innovation cycles. This is Custom Ink's story of our lift & shift cloud migration to cloud-native using Lamby (https://lamby.custominktech.com), a Rack/HTTP adapter for API Gateway or Application Load Balancers, as one of our tools to help deliver AWS Well-Architected solutions in a versatile programming environment that uses many languages.
$ ./bin/build | |
Sending build context to Docker daemon 130.6kB | |
Step 1/12 : FROM lambci/lambda:build-ruby2.5 | |
---> b71c0ed10ee3 | |
Step 2/12 : WORKDIR /build | |
---> Running in 661fe3c895e3 | |
Removing intermediate container 661fe3c895e3 | |
---> 60ba7e7f1d27 | |
Step 3/12 : ARG VIPS_VERSION=8.7.4 | |
---> Running in e29f20323847 |
#!/bin/bash | |
set -e | |
if [ -z ${STAGE_ENV+x} ]; then | |
echo "Missing STAGE_ENV env variable!" | |
exit 126 | |
fi | |
REGION1="us-east-1" |
@@ -558,13 +567,13 @@ | |
.core (@gridColumnWidth, @gridGutterWidth) { | |
.spanX (@index) when (@index > 0) { | |
- (~".span@{index}") { .span(@index); } | |
+ .span@{index} { .span(@index); } | |
.spanX(@index - 1); | |
} | |
.spanX (0) {} | |
require 'open-uri' | |
require 'bundler/inline' | |
gemfile true do | |
source 'https://rubygems.org' | |
gem 'imgix' | |
gem 'launchy' | |
end | |
DESIGN_URL = 'https://www.customink.com/email/imgix/design.png' |
// Using this code below, I was able to itterate over a list of | |
// color names and append them to an empty list. I was then able | |
// to use the selectors from there. | |
$selectors: (); | |
@each $value in $my-colors-names { | |
$selector: unquote(".box.#{$value} .box-header"); | |
$selectors: append($selectors, $selector, comma); | |
} | |
#{$selectors} { @extend .color-white; } |
if defined?(PhusionPassenger) | |
PhusionPassenger.on_event(:starting_worker_process) do |forked| | |
if forked | |
ActiveRecord::Base.clear_all_connections! | |
MysqlBase.establish_connection MysqlBase.configurations['mysql'][Rails.env] | |
end | |
end | |
end |
// Assuming you put the LP init code into a function called window.lpTagCustomInit | |
document.addEventListener('turbolinks:before-cache', function(){ | |
jQuery("[id^='LP_DIV']").empty(); | |
}) | |
document.addEventListener('turbolinks:load', function(){ | |
delete window.liveperson; | |
delete window.lpMTagConfig; | |
delete window.lpTag; |
class Toolbar | |
constructor: -> | |
document.addEventListener 'turbolinks:before-cache', @turboBeforeCache | |
@reConstructor() | |
reConstructor: -> | |
@registerWaypoint() | |
registerWaypoint: -> |