prevent rails server from launching if file doesnt exist
<p>I have <code>aws.yml</code> </p>

<pre><code>development:
  asset_host: 'abcd1234efgh@cloudfront.net'
</code></pre>

<p>I created <code>assets.rb</code> </p>

<pre><code>AWS_CONFIG = Rails.application.config_for(:aws)
unless (AWS_CONFIG.nil? || AWS_CONFIG['asset_host'].nil?)
  Rails.application.config.asset_host = AWS_CONFIG['asset_host']
end
</code></pre>

<p>I am trying to implement the logic if <code>aws.yml</code> not exists then it should completely blow up and prevent the rails server from launching. Any idea how could i achieve that?</p>