- What is your organization's strategy for hosting the server-side components
of your application?
- On-prem hosting - We host all server-side components of our application using on-premise physical infrastructure
For years, people have been using jemalloc with ruby. There were various benchmarks and discussions. Legend had it that Jemalloc 5 didn't work as well as Jemalloc 3.
Then, one day, hope appeared on the horizon. @wjordan offered a config for Jemalloc 5.
FROM ruby:3.1.2-bullseye
RUN apt-get update ; \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if Rails.env.development? | |
| FileUtils.mkdir_p(Rails.root.join('config', 'certs')) | |
| key_path = Rails.root.join('config', 'certs', 'development.key') | |
| crt_path = Rails.root.join('config', 'certs', 'development.crt') | |
| unless File.exist?(key_path) && File.exist?(crt_path) | |
| def cert_domain | |
| 'localhost' # Setting[:cookie_domain] || 'localhost' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| echo "Environment: $RAILS_ENV" | |
| # Check if we need to install new gems | |
| bundle check || bundle install --jobs 20 --retry 5 | |
| # Then run any passed command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| networks: | |
| development: | |
| test: | |
| volumes: | |
| db_data: | |
| gem_cache: | |
| shared_data: | |
| services: | |
| restarone_redis: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ruby:2.6.6-alpine | |
| ENV APP_PATH /var/app | |
| ENV BUNDLE_VERSION 2.1.4 | |
| ENV BUNDLE_PATH /usr/local/bundle/gems | |
| ENV TMP_PATH /tmp/ | |
| ENV RAILS_LOG_TO_STDOUT true | |
| ENV RAILS_PORT 3000 | |
| # copy entrypoint scripts and grant execution permissions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby '2.7.1' | |
| gem 'rails', github: 'rails/rails' | |
| gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
| # Action Text | |
| gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
| gem 'okra', github: 'basecamp/okra' | |
| # Drivers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trigger: | |
| - master | |
| resources: | |
| - repo: self | |
| variables: | |
| azureSubscription: '<azure-subscription>' | |
| dockerRegistryServiceConnection: '<service-connection>' | |
| imageRepository: '<repository-name>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name kartoffel.example.org; | |
| keepalive_timeout 5; | |
| root /var/www/kartoffel/current/public; | |
| access_log /var/log/nginx/kartoffel.access.log; |
NewerOlder