Add these files to your .gitignore:
.htaccess
public/.htaccess
.env.production
- If you have previously committed a .htaccess to set
RailsEnv development
,git mv .htaccess .htaccess.development
and commit prior to adding the .htaccess to .gitignore. Then you cancp .htaccess.development .htaccess
in your sandbox while developing - If you had previously committed a public/.htaccess to handle the root redirect passenger bug (instead of using a public/index.html file),
git mv public/.htaccess public/.htaccess.passenger_fix
prior to addingpublic/.htaccess
to gitignore. You can thencp public/.htaccess.passenger_fix public/.htaccess
for development purposes. Note when sharing an apppublic/.htaccess.passenger_fix
will be auto-merged with the productionpublic/.htaccess
if it exists.