Fixed translation, CDN, and POST issues for prod
This commit is contained in:
@@ -24,6 +24,7 @@ module BikeBike
|
||||
|
||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
config.action_controller.default_url_options = { :trailing_slash => true }
|
||||
config.i18n.default_locale = :en
|
||||
config.i18n.enforce_available_locales = false
|
||||
self.paths['config/database'] = Rails.root.join('config', 'database.yml')
|
||||
|
||||
@@ -65,8 +65,9 @@ BikeBike::Application.configure do
|
||||
# Precompile additional assets.
|
||||
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
||||
# config.assets.precompile += %w( search.js )
|
||||
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
|
||||
config.action_controller.asset_host = "https://cdn.bikebike.org"
|
||||
#config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
|
||||
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif *.svg application/*.scss web-fonts/*.scss)
|
||||
#config.action_controller.asset_host = "https://cdn.bikebike.org"
|
||||
|
||||
# Ignore bad email addresses and do not raise email delivery errors.
|
||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
||||
@@ -89,13 +90,13 @@ BikeBike::Application.configure do
|
||||
config.action_mailer.smtp_settings = {
|
||||
:enable_starttls_auto => true,
|
||||
:address => 'mail.bikebike.org',
|
||||
:domain => 'bikebike.org',
|
||||
:domain => 'preview.bikebike.org',
|
||||
:port => 587,
|
||||
:authentication => :plain,
|
||||
:enable_starttls_auto => true,
|
||||
:openssl_verify_mode => 'none',
|
||||
:user_name => 'info@bikebike.org',
|
||||
:password => 'NewOrleans@)!#'
|
||||
:user_name => 'info@preview.bikebike.org',
|
||||
:password => 'test'
|
||||
}
|
||||
config.action_mailer.raise_delivery_errors = true
|
||||
config.action_mailer.perform_deliveries = true
|
||||
|
||||
+15
-14
@@ -5191,9 +5191,6 @@ en:
|
||||
use_custom_value: Use a custom value
|
||||
explain_zero_fallback: This translation will use the plural version for the
|
||||
number 0
|
||||
test:
|
||||
one: Test
|
||||
other: Tests
|
||||
content:
|
||||
needs_translations: This page contains untranslated content
|
||||
requires_translation: This %{model} is in %{language}.
|
||||
@@ -5457,17 +5454,19 @@ en:
|
||||
theme: Which of the themes below best match your workshop? This will help
|
||||
hosts to avoid scheduling conflicts. Select other if none of the options
|
||||
match in any way.
|
||||
new_workshop: Workshops are organized and run by attendees, they can be about
|
||||
anything that might concern community bicycle projects and can be in any
|
||||
format including presentations, hands-on workshops, discussion groups, and
|
||||
bicycle rides. If you would like to host you own workshop you can click
|
||||
on the "create workshop" button.
|
||||
Workshops: Duis bibendum, felis sed interdum venenatis, turpis enim blandit
|
||||
mi, in porttitor pede justo eu massa. Donec dapibus. Duis at velit eu est
|
||||
congue elementum. In hac habitasse platea dictumst. Morbi vestibulum, velit
|
||||
id pretium iaculis, diam erat fermentum justo, nec condimentum neque sapien
|
||||
placerat ante. Nulla justo. Aliquam quis turpis eget elit sodales scelerisque.
|
||||
Mauris sit amet eros. Suspendisse accumsan tortor quis turpis. Sed ante
|
||||
new_workshop: 'Workshops in the past have tended to fit into a few broad categories:
|
||||
structural/organizational (how to start a shop, how to register a non-profit,
|
||||
consensus decision making, etc,) mechanical (how to weld two tandems to
|
||||
a tall bike, building 3-speed hubs out of fishing tackle and old socks,
|
||||
etc,) anti-oppression (safe spaces, women’s workshops, etc,) and recreational
|
||||
(touring tips, yoga for cyclists, etc.) This year we would like to try a
|
||||
panel, a forum, or other types of settings that you think might facilitate
|
||||
learning – be inventive, let us know what you want to see!'
|
||||
Workshops: Do you have an exciting skill to share with us? Want to chat about
|
||||
creating safe community spaces? Want to make sure we fit a good bike ride
|
||||
into the weekend? Propose a workshop! Don’t worry if you’re not an expert,
|
||||
we want to hear about everyone’s experience within the many configurations
|
||||
of community shops we’re coming from.
|
||||
section_content:
|
||||
bikebike:
|
||||
about_bikebike: Bike!Bike! is an international annual gathering organized by
|
||||
@@ -5521,6 +5520,8 @@ en:
|
||||
Registration_Stats: Registration Stats
|
||||
View_Workshop: View Workshop
|
||||
Workshops: Workshops
|
||||
Delete_Workshop: Create Workshop
|
||||
Edit_Workshop: Edit Workshop
|
||||
policy:
|
||||
Safer_Spaces_Policy: Safer Space Agreement
|
||||
'404':
|
||||
|
||||
@@ -791,9 +791,7 @@ es:
|
||||
The_Agreement: Acuerdo del Espacio Mas Seguro
|
||||
permission_denied:
|
||||
paragraphs:
|
||||
translator_not_logged_in: Sorry you must be a translator to view this page
|
||||
headings:
|
||||
login_required: Please Login
|
||||
forms:
|
||||
labels:
|
||||
generic:
|
||||
|
||||
+1
-1
@@ -88,7 +88,7 @@ BikeBike::Application.routes.draw do
|
||||
#
|
||||
get '/confirm/:token' => 'application#confirm', :as => :confirm
|
||||
#post '/doconfirm' => 'application#do_confirm', :as => :do_confirm
|
||||
match '/doconfirm' => 'application#do_confirm', :as => :do_confirm, via: [:get, :post]
|
||||
post '/doconfirm' => 'application#do_confirm', :as => :do_confirm
|
||||
post '/logout' => 'application#user_logout', :as => :logout
|
||||
post '/translator-request' => 'application#translator_request', :as => :translator_request
|
||||
|
||||
|
||||
Reference in New Issue
Block a user