I struggled to deploy sidekiq to an Ubuntu 20.04 server using the capistrano-sidekiq gem. Here are the steps I took to get it to work
Add to your Gemfile
gem 'sidekiq', '~> 6.2'
Add to the development group of your gemfile
# Run RSpec in parallel on GitHub Actions with even test group runtimes | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
group: [1, 2] | |
name: test group ${{ matrix.group }}/2 | |
services: |
I struggled to deploy sidekiq to an Ubuntu 20.04 server using the capistrano-sidekiq gem. Here are the steps I took to get it to work
Add to your Gemfile
gem 'sidekiq', '~> 6.2'
Add to the development group of your gemfile
FROM ruby:2.7.0 | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \ | |
apt-get update -qq && apt-get install -y \ | |
build-essential \ | |
nodejs \ | |
yarn | |
RUN mkdir /app |
stages: | |
- build | |
- test | |
- deploy | |
.base: | |
image: ruby:2.7.0 | |
cache: | |
key: gems_and_packages | |
paths: |
/* | |
https://www.npmjs.com/package/@azure/storage-blob | |
npm install @azure/storage-blob | |
OR | |
yarn add @azure/storage-blob | |
Remember to set up the CORS rules for your storage https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-javascript-client-libraries#setting-up-storage-account-cors-rules | |
*/ | |
const { BlobServiceClient } = require("@azure/storage-blob") |
const echoPostRequest = { | |
url: 'https://<my url>.auth0.com/oauth/token', | |
method: 'POST', | |
header: 'Content-Type:application/json', | |
body: { | |
mode: 'application/json', | |
raw: JSON.stringify( | |
{ | |
client_id:'<your client ID>', | |
client_secret:'<your client secret>', |
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
tinyMCE.init | |
selector: '#my_editor', | |
plugins: [ 'image' ] | |
file_browser_callback: (field_name, url, type, win) -> | |
if type == 'image' | |
$('.mce-container.mce-panel.mce-floatpanel.mce-window.mce-in').hide() | |
$('.modal-backdrop').hide() | |
$('#mce-modal-block').hide() | |
$('#myModal').modal('show') | |
return |
@import "twitter/bootstrap/bootstrap"; | |
// Set the correct sprite paths | |
@iconSpritePath: image-url("twitter/bootstrap/glyphicons-halflings.png"); | |
@iconWhiteSpritePath: image-url("twitter/bootstrap/glyphicons-halflings-white.png"); | |
// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines) | |
@fontAwesomeEotPath: font-url("fontawesome-webfont.eot"); | |
@fontAwesomeEotPath_iefix: font-url("fontawesome-webfont.eot?#iefix"); | |
@fontAwesomeWoffPath: font-url("fontawesome-webfont.woff"); |
Started GET "/assets/agent/twitter/fonts/glyphicons-halflings-regular.ttf" for 127.0.0.1 at 2015-06-26 11:24:56 +0700 | |
ActionController::RoutingError (No route matches [GET] "/assets/agent/twitter/fonts/glyphicons-halflings-regular.ttf"): | |
actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' | |
actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' | |
railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' | |
railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' | |
activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' | |
activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' | |
activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' |