This commit is contained in:
hackerESQ
2025-01-26 20:40:44 -06:00
parent b27edd9818
commit 395eb31801
3 changed files with 11 additions and 5 deletions
+4 -5
View File
@@ -1,6 +1,7 @@
FROM php:8.3-fpm
ENV DEBIAN_FRONTEND=noninteractive
ENV APP_NAME=Investbrain
ENV APP_URL="http://localhost:8000"
ENV ASSET_URL="http://localhost:8000"
ENV APP_DEBUG=true
@@ -56,11 +57,9 @@ RUN apt-get update && apt-get install -y \
npm \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Install PHP dependencies
RUN composer install --no-scripts --optimize-autoloader
# Install Node dependencies and build assets
RUN npm install && npm run build
# Install PHP dependencies and build front end assets
RUN composer install --no-scripts --optimize-autoloader \
&& npm install && npm run build
# Copy over configs
COPY ./docker/nginx.conf /etc/nginx/conf.d/default.conf
+4
View File
@@ -24,6 +24,10 @@ if [[ -z "$APP_KEY" ]]; then
export APP_KEY=base64:$(openssl rand -base64 32)
draw_box $APP_KEY
# persist the ENVs to a file so laravel can access?
fi
for dir in storage/framework/cache storage/framework/sessions storage/framework/views; do
+3
View File
@@ -11,6 +11,9 @@ use App\Http\Controllers\InvitedOnboardingController;
use Laravel\Jetstream\Http\Controllers\Livewire\PrivacyPolicyController;
use Laravel\Jetstream\Http\Controllers\Livewire\TermsOfServiceController;
Route::get('/test', function() {
dd(env('APP_NAME'), env('DB_CONNECTION'));
});
Route::get('/', function () {
if (!config('investbrain.self_hosted', true) && View::exists('landing-page::index')) {