This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add files not added when upgrading rails
- Loading branch information
Constantine Nikolaou
committed
Oct 12, 2019
1 parent
c3c5c39
commit 65223f8
Showing
5 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--require spec_helper |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env ruby | ||
VENDOR_PATH = File.expand_path('..', __dir__) | ||
Dir.chdir(VENDOR_PATH) do | ||
begin | ||
exec "yarnpkg #{ARGV.join(" ")}" | ||
rescue Errno::ENOENT | ||
$stderr.puts "Yarn executable was not detected in the system." | ||
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" | ||
exit 1 | ||
end | ||
end |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Be sure to restart your server when you modify this file. | ||
# | ||
# This file contains migration options to ease your Rails 5.1 upgrade. | ||
# | ||
# Once upgraded flip defaults one by one to migrate to the new default. | ||
# | ||
# Read the Guide for Upgrading Ruby on Rails for more info on each option. | ||
|
||
# Make `form_with` generate non-remote forms. | ||
Rails.application.config.action_view.form_with_generates_remote_forms = false | ||
|
||
# Unknown asset fallback will return the path passed in when the given | ||
# asset is not present in the asset pipeline. | ||
# Rails.application.config.assets.unknown_asset_fallback = false |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# Your secret key is used for verifying the integrity of signed cookies. | ||
# If you change this key, all old signed cookies will become invalid! | ||
|
||
# Make sure the secret is at least 30 characters and all random, | ||
# no regular words or you'll be exposed to dictionary attacks. | ||
# You can use `rails secret` to generate a secure secret key. | ||
|
||
# Make sure the secrets in this file are kept private | ||
# if you're sharing your code publicly. | ||
|
||
# Shared secrets are available across all environments. | ||
|
||
# shared: | ||
# api_key: a1B2c3D4e5F6 | ||
|
||
# Environmental secrets are only available for that specific environment. | ||
|
||
development: | ||
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> | ||
|
||
test: | ||
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> | ||
|
||
# Do not keep production secrets in the unencrypted secrets file. | ||
# Instead, either read values from the environment. | ||
# Or, use `bin/rails secrets:setup` to configure encrypted secrets | ||
# and move the `production:` environment over there. | ||
|
||
production: | ||
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
test: | ||
service: Disk | ||
root: <%= Rails.root.join("tmp/storage") %> | ||
|
||
local: | ||
service: Disk | ||
root: <%= Rails.root.join("storage") %> | ||
|
||
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) | ||
# amazon: | ||
# service: S3 | ||
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> | ||
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> | ||
# region: us-east-1 | ||
# bucket: your_own_bucket | ||
|
||
# Remember not to checkin your GCS keyfile to a repository | ||
# google: | ||
# service: GCS | ||
# project: your_project | ||
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> | ||
# bucket: your_own_bucket | ||
|
||
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key) | ||
# microsoft: | ||
# service: AzureStorage | ||
# storage_account_name: your_account_name | ||
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %> | ||
# container: your_container_name | ||
|
||
# mirror: | ||
# service: Mirror | ||
# primary: local | ||
# mirrors: [ amazon, google, microsoft ] |