mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-05-28 14:14:54 +00:00
Replace old references
This commit is contained in:
12
.env.example
12
.env.example
@@ -2,14 +2,14 @@ APP_ENV=production
|
||||
APP_KEY=base64:kgk/4DW1vEVy7aEvet5FPp5un6PIGe/so8H0mvoUtW0=
|
||||
APP_DEBUG=true
|
||||
APP_LOG_LEVEL=debug
|
||||
APP_URL=http://crater.test
|
||||
APP_URL=http://invoiceshelf.test
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=db
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=crater
|
||||
DB_USERNAME=crater
|
||||
DB_PASSWORD="crater"
|
||||
DB_DATABASE=invoiceshelf
|
||||
DB_USERNAME=invoiceshelf
|
||||
DB_PASSWORD="invoiceshelf"
|
||||
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=file
|
||||
@@ -32,8 +32,8 @@ PUSHER_APP_ID=
|
||||
PUSHER_KEY=
|
||||
PUSHER_SECRET=
|
||||
|
||||
SANCTUM_STATEFUL_DOMAINS=crater.test
|
||||
SESSION_DOMAIN=crater.test
|
||||
SANCTUM_STATEFUL_DOMAINS=invoiceshelf.test
|
||||
SESSION_DOMAIN=invoiceshelf.test
|
||||
|
||||
TRUSTED_PROXIES="*"
|
||||
|
||||
|
||||
@@ -9,5 +9,5 @@ MAIL_PORT=587
|
||||
MAIL_USERNAME=ff538f0e1037f4
|
||||
MAIL_PASSWORD=c04c81145fcb73
|
||||
MAIL_ENCRYPTION=tls
|
||||
MAIL_FROM_ADDRESS="admin@craterapp.com"
|
||||
MAIL_FROM_ADDRESS="admin@invoiceshelf.com"
|
||||
MAIL_FROM_NAME="John Doe"
|
||||
|
||||
2
composer.lock
generated
2
composer.lock
generated
@@ -1727,7 +1727,7 @@
|
||||
],
|
||||
"description": "Crater Module Management Package",
|
||||
"keywords": [
|
||||
"crater",
|
||||
"invoiceshelf",
|
||||
"laravel",
|
||||
"module",
|
||||
"modules",
|
||||
|
||||
@@ -46,7 +46,7 @@ return [
|
||||
/*
|
||||
* Marketplace url.
|
||||
*/
|
||||
'base_url' => 'https://craterapp.com',
|
||||
'base_url' => 'https://invoiceshelf.com',
|
||||
|
||||
/*
|
||||
* List of languages supported by Crater.
|
||||
|
||||
@@ -56,7 +56,7 @@ return [
|
||||
*/
|
||||
|
||||
'from' => [
|
||||
'address' => env('MAIL_FROM_ADDRESS', 'admin@crater.in'),
|
||||
'address' => env('MAIL_FROM_ADDRESS', 'admin@invoiceshelf.com'),
|
||||
'name' => env('MAIL_FROM_NAME', 'Crater'),
|
||||
],
|
||||
|
||||
|
||||
@@ -19,10 +19,10 @@ class UsersTableSeeder extends Seeder
|
||||
public function run()
|
||||
{
|
||||
$user = User::create([
|
||||
'email' => 'admin@craterapp.com',
|
||||
'email' => 'admin@invoiceshelf.com',
|
||||
'name' => 'Jane Doe',
|
||||
'role' => 'super admin',
|
||||
'password' => 'crater@123',
|
||||
'password' => 'invoiceshelf@123',
|
||||
]);
|
||||
|
||||
$company = Company::create([
|
||||
|
||||
@@ -4,18 +4,18 @@ services:
|
||||
app:
|
||||
build:
|
||||
args:
|
||||
user: crater-user
|
||||
user: invoiceshelf-user
|
||||
uid: 1000
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
image: crater-php
|
||||
image: invoiceshelf-php
|
||||
restart: unless-stopped
|
||||
working_dir: /var/www/
|
||||
volumes:
|
||||
- ./:/var/www
|
||||
- ./docker-compose/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:rw,delegated
|
||||
networks:
|
||||
- crater
|
||||
- invoiceshelf
|
||||
|
||||
db:
|
||||
image: mariadb
|
||||
@@ -26,14 +26,14 @@ services:
|
||||
# and uncomment the line under this one.
|
||||
#- ./docker-compose/db/data:/var/lib/mysql:rw,delegated
|
||||
environment:
|
||||
MYSQL_USER: crater
|
||||
MYSQL_PASSWORD: crater
|
||||
MYSQL_DATABASE: crater
|
||||
MYSQL_ROOT_PASSWORD: crater
|
||||
MYSQL_USER: invoiceshelf
|
||||
MYSQL_PASSWORD: invoiceshelf
|
||||
MYSQL_DATABASE: invoiceshelf
|
||||
MYSQL_ROOT_PASSWORD: invoiceshelf
|
||||
ports:
|
||||
- '33006:3306'
|
||||
networks:
|
||||
- crater
|
||||
- invoiceshelf
|
||||
|
||||
nginx:
|
||||
image: nginx:1.17-alpine
|
||||
@@ -44,7 +44,7 @@ services:
|
||||
- ./:/var/www
|
||||
- ./docker-compose/nginx:/etc/nginx/conf.d/
|
||||
networks:
|
||||
- crater
|
||||
- invoiceshelf
|
||||
|
||||
cron:
|
||||
build:
|
||||
@@ -53,11 +53,11 @@ services:
|
||||
volumes:
|
||||
- ./:/var/www
|
||||
networks:
|
||||
- crater
|
||||
- invoiceshelf
|
||||
|
||||
volumes:
|
||||
db:
|
||||
|
||||
networks:
|
||||
crater:
|
||||
invoiceshelf:
|
||||
driver: bridge
|
||||
|
||||
@@ -25,6 +25,6 @@
|
||||
<server name="MAIL_MAILER" value="array"/>
|
||||
<server name="QUEUE_CONNECTION" value="sync"/>
|
||||
<server name="SESSION_DRIVER" value="array"/>
|
||||
<server name="APP_URL" value="http://crater.test"/>
|
||||
<server name="APP_URL" value="http://invoiceshelf.test"/>
|
||||
</php>
|
||||
</phpunit>
|
||||
|
||||
@@ -87,7 +87,7 @@ Join the Crater discord server to discuss:
|
||||
|
||||
## Translate
|
||||
|
||||
Help us translate on https://crowdin.com/project/crater-invoice
|
||||
Help us translate on https://crowdin.com/project/invoiceshelf
|
||||
|
||||
**Thanks to Translation Contributors:**
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::get('ping', function () {
|
||||
return response()->json([
|
||||
'success' => 'crater-self-hosted',
|
||||
'success' => 'invoiceshelf-self-hosted',
|
||||
]);
|
||||
})->name('ping');
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ test('update profile', function () {
|
||||
$user = [
|
||||
'name' => 'John Doe',
|
||||
'password' => 'admin@123',
|
||||
'email' => 'admin@crater.in',
|
||||
'email' => 'admin@invoiceshelf.com',
|
||||
];
|
||||
|
||||
$response = putJson('api/v1/me', $user);
|
||||
@@ -101,7 +101,7 @@ test('update settings', function () {
|
||||
'fiscal_year' => '1-12',
|
||||
'carbon_date_format' => 'Y/m/d',
|
||||
'moment_date_format' => 'YYYY/MM/DD',
|
||||
'notification_email' => 'noreply@crater.in',
|
||||
'notification_email' => 'noreply@invoiceshelf.com',
|
||||
'notify_invoice_viewed' => 'YES',
|
||||
'notify_estimate_viewed' => 'YES',
|
||||
'tax_per_item' => 'YES',
|
||||
|
||||
@@ -2,14 +2,14 @@ APP_ENV=production
|
||||
APP_KEY=base64:kgk/4DW1vEVy7aEvet5FPp5un6PIGe/so8H0mvoUtW0=
|
||||
APP_DEBUG=true
|
||||
APP_LOG_LEVEL=debug
|
||||
APP_URL=http://crater.test
|
||||
APP_URL=http://invoiceshelf.test
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=127.0.0.1
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=crater
|
||||
DB_USERNAME=crater
|
||||
DB_PASSWORD=crater
|
||||
DB_DATABASE=invoiceshelf
|
||||
DB_USERNAME=invoiceshelf
|
||||
DB_PASSWORD=invoiceshelf
|
||||
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=file
|
||||
@@ -32,8 +32,8 @@ PUSHER_APP_ID=
|
||||
PUSHER_KEY=
|
||||
PUSHER_SECRET=
|
||||
|
||||
SANCTUM_STATEFUL_DOMAINS=crater.test
|
||||
SESSION_DOMAIN=crater.test
|
||||
SANCTUM_STATEFUL_DOMAINS=invoiceshelf.test
|
||||
SESSION_DOMAIN=invoiceshelf.test
|
||||
|
||||
TRUSTED_PROXIES="*"
|
||||
|
||||
|
||||
@@ -27,9 +27,9 @@ RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl bcmath gd
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# Create system user to run Composer and Artisan Commands
|
||||
RUN useradd -G www-data,root -u 1000 -d /home/crater-user crater-user
|
||||
RUN mkdir -p /home/crater-user/.composer && \
|
||||
chown -R crater-user:crater-user /home/crater-user
|
||||
RUN useradd -G www-data,root -u 1000 -d /home/invoiceshelf-user invoiceshelf-user
|
||||
RUN mkdir -p /home/invoiceshelf-user/.composer && \
|
||||
chown -R invoiceshelf-user:invoiceshelf-user /home/invoiceshelf-user
|
||||
|
||||
# Mounted volumes
|
||||
COPY ./ /var/www
|
||||
@@ -39,10 +39,10 @@ COPY ./uffizzi/.env.example /var/www/.env
|
||||
# Set working directory
|
||||
WORKDIR /var/www
|
||||
|
||||
RUN chown -R crater-user:crater-user ./
|
||||
RUN chmod -R 775 composer.json composer.lock \
|
||||
RUN chown -R invoiceshelf-user:invoiceshelf-user ./
|
||||
RUN chmod -R 775 composer.json composer.lock \
|
||||
composer.lock storage/framework/ \
|
||||
storage/logs/ bootstrap/cache/ /home/crater-user/.composer
|
||||
storage/logs/ bootstrap/cache/ /home/invoiceshelf-user/.composer
|
||||
RUN chown -R $(whoami):$(whoami) /var/log/
|
||||
RUN chmod -R 775 /var/log
|
||||
|
||||
@@ -52,13 +52,13 @@ RUN npm config set user 0
|
||||
RUN npm config set unsafe-perm true
|
||||
# Frontend bulding
|
||||
RUN sed -i 's/DB_CONNECTION=mysql/DB_CONNECTION=sqlite/g' /var/www/.env
|
||||
RUN sed -i 's/DB_DATABASE=crater/DB_DATABASE=\/tmp\/crater.sqlite/g' /var/www/.env
|
||||
RUN touch /tmp/crater.sqlite
|
||||
RUN sed -i 's/DB_DATABASE=invoiceshelf/DB_DATABASE=\/tmp\/invoiceshelf.sqlite/g' /var/www/.env
|
||||
RUN touch /tmp/invoiceshelf.sqlite
|
||||
RUN composer install --no-interaction --prefer-dist
|
||||
RUN npm i -f
|
||||
RUN npm install --save-dev sass
|
||||
RUN export NODE_OPTIONS="--max-old-space-size=4096" && /usr/bin/npx vite build --target=es2020
|
||||
RUN sed -i 's/DB_CONNECTION=sqlite/DB_CONNECTION=mysql/g' /var/www/.env
|
||||
RUN sed -i 's/DB_DATABASE=\/tmp\/crater.sqlite/DB_DATABASE=crater/g' /var/www/.env
|
||||
RUN sed -i 's/DB_DATABASE=\/tmp\/invoiceshelf.sqlite/DB_DATABASE=invoiceshelf/g' /var/www/.env
|
||||
|
||||
USER crater-user
|
||||
USER invoiceshelf-user
|
||||
|
||||
@@ -26,9 +26,9 @@ RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl bcmath gd
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# Create system user to run Composer and Artisan Commands
|
||||
RUN useradd -G www-data,root -u 1000 -d /home/crater-user crater-user
|
||||
RUN mkdir -p /home/crater-user/.composer && \
|
||||
chown -R crater-user:crater-user /home/crater-user
|
||||
RUN useradd -G www-data,root -u 1000 -d /home/invoiceshelf-user invoiceshelf-user
|
||||
RUN mkdir -p /home/invoiceshelf-user/.composer && \
|
||||
chown -R invoiceshelf-user:invoiceshelf-user /home/invoiceshelf-user
|
||||
|
||||
# Mounted volumes
|
||||
COPY ./ /var/www
|
||||
@@ -38,10 +38,10 @@ COPY ./uffizzi/.env.example /var/www/.env
|
||||
# Set working directory
|
||||
WORKDIR /var/www
|
||||
|
||||
RUN chown -R crater-user:crater-user ./
|
||||
RUN chmod -R 775 composer.json composer.lock \
|
||||
RUN chown -R invoiceshelf-user:invoiceshelf-user ./
|
||||
RUN chmod -R 775 composer.json composer.lock \
|
||||
composer.lock storage/framework/ \
|
||||
storage/logs/ bootstrap/cache/ /home/crater-user/.composer
|
||||
storage/logs/ bootstrap/cache/ /home/invoiceshelf-user/.composer
|
||||
|
||||
RUN composer config --no-plugins allow-plugins.pestphp/pest-plugin true && \
|
||||
composer install --no-interaction --prefer-dist --optimize-autoloader && \
|
||||
|
||||
@@ -11,10 +11,10 @@ services:
|
||||
restart: unless-stopped
|
||||
working_dir: /var/www/
|
||||
command: ["-c","
|
||||
composer config --no-plugins allow-plugins.pestphp/pest-plugin true &&
|
||||
composer install --no-interaction --prefer-dist --optimize-autoloader &&
|
||||
php artisan storage:link || true &&
|
||||
php artisan key:generate --force &&
|
||||
composer config --no-plugins allow-plugins.pestphp/pest-plugin true &&
|
||||
composer install --no-interaction --prefer-dist --optimize-autoloader &&
|
||||
php artisan storage:link || true &&
|
||||
php artisan key:generate --force &&
|
||||
php-fpm",
|
||||
]
|
||||
entrypoint: /bin/sh
|
||||
@@ -29,10 +29,10 @@ services:
|
||||
image: mariadb
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_USER: crater
|
||||
MYSQL_PASSWORD: crater
|
||||
MYSQL_DATABASE: crater
|
||||
MYSQL_ROOT_PASSWORD: crater
|
||||
MYSQL_USER: invoiceshelf
|
||||
MYSQL_PASSWORD: invoiceshelf
|
||||
MYSQL_DATABASE: invoiceshelf
|
||||
MYSQL_ROOT_PASSWORD: invoiceshelf
|
||||
ports:
|
||||
- '33006:3306'
|
||||
deploy:
|
||||
@@ -54,5 +54,5 @@ services:
|
||||
cron:
|
||||
image: "${CROND_IMAGE}"
|
||||
restart: always
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user