You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deploying a Laravel+Backpack project to production isn't very different from deploying a normal Laravel project to production. You only need to account for Basset, the system in Backpack that publishes the CSS and JS assets your admin panel needs.
118
+
119
+
That being said, here's a detailed step-by-step guide to deploying a Backpack project to production, that should work for most production servers:
120
+
121
+
1. Local Preparations
122
+
Before deploying your application, make sure your development environment is in order:
123
+
- Update dependencies:
124
+
```
125
+
composer install --no-dev --optimize-autoloader
126
+
npm install && npm run prod
127
+
```
128
+
- Configure your .env file for production. This file should not be included in version control (git), but make sure to have a copy with production settings.
129
+
130
+
2. Configure the Production Server
131
+
Ensure your production server meets the following requirements:
132
+
133
+
Web Server: Nginx or Apache.
134
+
PHP: Version compatible with your Laravel version.
135
+
Database: MySQL, PostgreSQL, etc.
136
+
Composer: Installed globally.
137
+
Node.js and npm: If you are using asset compilation with Laravel Mix.
138
+
139
+
3. Deploy the Code
140
+
There are several ways to deploy code to production, here’s one method using Git:
0 commit comments