I hosted LocomotiveCMS app on the hockey, after that I am working directly on the Harok MongoHQ database, and after completing Vesbit have taken.
I then set the development database on my local machine to connect to the MongoHQ database used by HerokuApp, so the local machine uses the actual data on the web. But property (CSS and JS files) donot is properly accessed. Although I have set up an AdWords certificate
Therefore, when I use CSSs + JS files on my local machine, I get the file, but there is no content, that means empty files. I do not even give AWS links for the properties, as I was looking at the Harkoku server.
Is this something with asset precompilation? I have described Haraok right here:
The production.rb file is as follows:
Testapp :: application.configure do # settings will specify here in the Config / application.rb code is not reloaded between precedence # requests on them config.cache_classes = true # Full error reports are disabled and caching is on config.consider_all_requests_local = False config.action_controller.perform_caching = true # Fixed property of the railroad server (Apache or NGN Exchange will do this already) config.serve_static_assets = false # javascript and css config.assets.compress = true = do not take back compressed property assets if a preconfigured asset is not deleted config.assets For the .compile = false # property URL, config.assets.digest = true # config.assets.prefix # config.assets.manifest = YOUR_PATH # specifies the default and saved default for the zero in the location that your Specifies the header that the server uses to send the file # config.action_dispatch.x_sendfile_header = "X-Sendfile" for # apache # # config.action_dispatch.x_sendfile_header = 'Exxl-redirection # # for NGN # on SSL Empower all access to the app, use strict-transport-security, and use secure cookies # Config.force_ssl = true # See everything in the log (default: info) # config.log_level =: debug # Prepare all log lines with the following tags # con Fig.log_tags = [: subdomain ,: uuid] # Logger for a separate distributed setup # config.logger = ActiveSupport :: TaggedLogging.new (SyslogLogger.new) # Use a different cache store in the # config.cache_store = : Mem_cache_store # Images, stylesheets, config.action_controller.asset_host = "http://assets.example.com" from #set server # additional assets precompile (application.js, application.css, and all non-JS / CSS already) Are added) # config.assets.precompile + =% W (search.js) # Disable the delivery errors, bad email address will be ignored # config.action_mailer.raise_delivery_errors = False # Enable thread mode # config.thread safe! Enable local fallback for # I18n (Lookup for any place returns to # I18n.default_locale when no translation can be found) config.i18n.fallbacks = true # Send notifications to the registered listeners Dislike config.active_support .deprecation =: Specify Config.action_mailer.delivery_method =: smtp config.action_mailer.smtp_settings = {: address = & gt; 'Smtp.sendgrid.net' ,: port = & gt; 25 ,: Authentication = & gt; : Plain ,: user_name = & gt; ENV ['SENDGRID_USERNAME'] ,: Password = & gt; ENV ['SENDGRID_PASSWORD'],: domain = & gt; ENV ['SENDGRID_DOMAIN']} and
Run it in your console
Bundle app reak assets: precompile then press git, then it has
No comments:
Post a Comment