Answers.Body: <p>I was being silly here. We have separate folder for all frontend assets (including twig templates), which will be copied over to the craft folder on build. The target files are gitignored and need to be force add to git. I added the files under web but missed out on the craft/templates folder.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-04T23:26:33.080Z
Answers.LastActivityDate: 2015-06-04T23:26:33.080Z
Answers.UserDisplayName: evolution7_thoai
Body: <p>I got a Craft-style 404 page when deployed to server. The homepage displays fine in local/development environment.</p>
  
  <p>On the server, the admin interface works fine though.</p>
  
  <p>Here's my config.</p>
  
  <pre><code>return array(
      'omitScriptNameInUrls' =&gt; true,
      'loginPath' =&gt; 'users/login',
      'logoutPath' =&gt; 'users/logout',
      'autoLoginAfterAccountActivation' =&gt; true,
      'enableCsrfProtection' =&gt; true,
      'defaultFilePermissions' =&gt; 0664,
      'defaultFolderPermissions' =&gt; 0775,
      'devMode' =&gt; true,
  );
  </code></pre>
  
  <p>Does anyone has a clue on how to debug this?</p>
  
  <p>Will a mismatch in the license's domain name cause this?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-03T20:57:37.707Z
Comments.Text: An invalid license won't kill your frontend – only the CP (it will display a message prompting to transfer/purchase a license or downgrade). Have you double checked your template paths/that your templates exist on the server? Also, check logs under ```/craft/storage/runtime/logs``` – perhaps there'll be a clue in there.
Comments.UserDisplayName: Mats Mikkel Rummelhoff
Tags: <deployment><404>
Title: 404 homepage on deployment
ThreadText: # 404 homepage on deployment
  
  (Asked by: username_0 on 2015-06-03)
  
  I got a Craft-style 404 page when deployed to server. The homepage displays fine in local/development environment.
  
  On the server, the admin interface works fine though.
  
  Here's my config.
  
  ```
  return array(
      'omitScriptNameInUrls' => true,
      'loginPath' => 'users/login',
      'logoutPath' => 'users/logout',
      'autoLoginAfterAccountActivation' => true,
      'enableCsrfProtection' => true,
      'defaultFilePermissions' => 0664,
      'defaultFolderPermissions' => 0775,
      'devMode' => true,
  );
  
  ```
  
  Does anyone has a clue on how to debug this?
  
  Will a mismatch in the license's domain name cause this?
  
  **Tags:** deployment, 404
  
  > **Comments:**
  > **username_1**: An invalid license won't kill your frontend – only the CP (it will display a message prompting to transfer/purchase a license or downgrade). Have you double checked your template paths/that your templates exist on the server? Also, check logs under ```/craft/storage/runtime/logs``` – perhaps there'll be a clue in there.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2015-06-04. Score: 3
  
  I was being silly here. We have separate folder for all frontend assets (including twig templates), which will be copied over to the craft folder on build. The target files are gitignored and need to be force add to git. I added the files under web but missed out on the craft/templates folder.
  
  
  ---
  
  