project icon indicating copy to clipboard operation
project copied to clipboard

Request, simple production deployment guide or automation?

Open Seda145 opened this issue 3 years ago • 0 comments

I read the available documentation on how to configure Bolt for production but there is no complete list of what files are unrequired or unsafe to store on the production environment. I follow these steps to prepare my environment for uploading to the web host:

Ensure:

  1. .env: change APP_SECRET to a random value, other than the default

  2. .env: set or add APP_ENV=prod

  3. .env: set or add APP_DEBUG=0

  4. Upload anything except the following:

  • ~/.vs/
  • ~/.vscode/
  • ~/.env.local
  • ~/.git/
  • ~/bin/post-create-project.php
  • ~/var/cache/
  • ~/var/data/ (if not used for sqlite)
  • ~/var/log/
  • Unused themes
  • Unused theme files (dev util js, Less / css maps, css var file generated from less, etc)
  • Any other remaining .local or local files must be compared to the Bolt documentation as they should not be committed (when working with other people) or in production.
  • Remaining developer files like vscode workspace file, executable files (bat etc) if present.

So at this point I have no automation and do not know what should be removed from production. I checked the bolt/simple-deploy repo but see that it has issues and isn't well documented.

Can I get a list of default files which should be removed after the initial installation and development process?

Seda145 avatar Jan 28 '22 02:01 Seda145