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