Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Custom Public Directoiry] icongenie and other extension i.e @quasar/qpdfviewer generating file to public folder #14677

Open
dipaksarkar opened this issue Oct 21, 2022 · 0 comments
Labels
area/cli area/icongenie area/plugins bug/1-hard-to-reproduce A reproduction is available, but it's hard to reproduce, so it has a lower priority. bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@dipaksarkar
Copy link

What happened?

I'm using vite and changed the publicDir by extendVitConf()

...
extendViteConf(viteConf) {
        Object.assign(viteConf, {
          publicDir: path.resolve(__dirname, "./statics"),
        });
},
...

When I have run command to generate icons and installing extensions it's not generating file to my custom public directory.

What did you expect to happen?

It should be generate the icons and related files of extension to custom public directory.

Reproduction URL

https://github.com/dipaksarkar/qaravel

How to reproduce?

Qaravel (qaravel)

Qaravel is a Combination of Laravel and Quasar

1. Add FontAwesome pro key

We used Fontawesome pro version.

2. Install the dependencies

yarn

3. Add Configuration

cp .env.example .env
cp .env.frontend .env.frontend.dev

4. Configuration for Laravel Sanctum

We have used Laravel Sanctum SPA authentication. Laravel Sanctum provides a featherweight
authentication system for SPAs (single page applications), mobile applications, and simple, token
based APIs. Sanctum allows each user of your application to generate multiple API tokens for their
account. These tokens may be granted abilities / scopes which specify which actions the tokens are
allowed to perform. Please check laravel default
sanctum configuration

SANCTUM_STATEFUL_DOMAINS=qaravel.gomedia:9000 (for local you have to include your port)
SESSION_DOMAIN=.qaravel.gomedia

5. Migrate the Database

Add your database details on .env

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=qaravel
DB_USERNAME=root
DB_PASSWORD=toor
yarn fresh:dev

Steps for Windows User

Press Win key + R > Paste following in the box > Press Enter

c:\windows\system32\drivers\etc\hosts

Then add thoes line at the bottom and save as admin.

127.0.0.1   api.qaravel.gomedia
127.0.0.1   app.qaravel.gomedia

7. Start the app in development mode (hot-code reloading, error reporting, etc.)

Only for windows user

php artisan serve --host=api.qaravel.gomedia  --port=80

Change your api url from .env.frontend.dev

API_URL=http://api.qaravel.gomedia
yarn start:web

Build the app for production

yarn build:web

Lint the files

yarn run lint

How to deply it in local?

Valet is a Laravel development environment for Mac minimalists. No Vagrant, no /etc/hosts file. You
can even share your sites publicly using local tunnels. Yeah, we like it too. We used valet to
deploy this project. Check the configuration of Laravel Valet

How to deply it in web?

First build your app then move all files in server and run following command

cp .htaccess.example .htaccess

Customize the configuration

See Configuring quasar.conf.js.

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite), Plugins (quasar), Icon Genie CLI (@quasar/icongenie)

Platforms/Browsers

No response

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@github-actions github-actions bot added area/cli area/icongenie area/plugins bug/1-hard-to-reproduce A reproduction is available, but it's hard to reproduce, so it has a lower priority. bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli area/icongenie area/plugins bug/1-hard-to-reproduce A reproduction is available, but it's hard to reproduce, so it has a lower priority. bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

1 participant