Created
November 28, 2023 19:38
-
-
Save bensheldon/8a4b35c3562072e22e5faea4ff78dc4b to your computer and use it in GitHub Desktop.
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/rails-production | |
#!/usr/bin/env ruby | |
# Simulate a production environment locally | |
# for the purpose of profiling | |
ENV['RAILS_ENV'] = 'production' | |
ENV['NODE_ENV'] = 'production' | |
ENV['RACK_ENV'] = 'production' | |
ENV['SECRET_KEY_BASE'] = 'test' | |
ENV['RAILS_LOG_TO_STDOUT'] = 'true' | |
ENV['DISABLE_DATABASE_ENVIRONMENT_CHECK'] = 'true' | |
ENV['DATABASE_URL'] = 'postgres://localhost:5432/dayoftheshirt_production' | |
ENV['ASSET_HOST'] = 'http://localhost:3000' | |
ENV['HOSTNAME']= 'http://localhost:3000' | |
# Don't forget to set `.env.production` for dotenv | |
# UPLOAD_HOST= | |
# AWS_ACCESS_KEY_ID= | |
# AWS_SECRET_ACCESS_KEY= | |
# S3_BUCKET= | |
APP_PATH = File.expand_path('../config/application', __dir__) | |
require_relative '../config/boot' | |
require 'rails/commands' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment