changing adonis js public folder path - node.js

as you know adonis 5 public folder will be deleted on every build my question is how can I change that folder path to preserve this folder on build.
there is an issue in the adonis repo that mentions symlincs is the best way to do this I appreciate guiding me on this matter and I have to ask if the symlink approach will be a problem on local development time on windows

Related

deleted css files are accessing and web application is running those files

I made a static folder where I saved all css files to be used in my flask web development project. It is not reflecting the changes while I was doing some change .When I deleted that static folder then also it is accesing the files.
I have not clue from where it is accessing..
Please solve this problem
Thanks in advance
gallery.css file is not present:-
but accessing this file:-
try going to your project directory (not in your IDE, but the folder where the project is located)
find any/all directories named
__pycache__
and delete them.
clear all browser cache.
rerun the app in your IDE

Why Would React Change Image File Extension On Build

I am using create react app and have an image tag that was inadvertently capitalized (tony.JPG). I did a build and successfully pushed the app to production on Heroku. However, I realized the capitalization issue and change the extension to its proper lower case (tony.jpg). However, the build file still showed with the capitalized extension. I deleted the build file and did a new build but got the same issue again. I resolved the issue by changing the img tag src but I have a lingering question. Why would react keep capitalizing the image extension even though the image file was changed to lower case and there was a new build?
I am using Node, Express, & Create React App. I've tried changed the file path in explorer directly and in my client > public > images > tony.JPG. It may be related but the build > images folder not only has the capitalized extension but has two other files (one that is tony.JPG~e5463541ef50286886de13e03dea670ef69c85c6 and another file called tony.JPG~HEAD).
Images name in public folder (tony.jpg):
Image in build folder (tony.JPG):
As #Matt-holland mentioned the type of OS matters, OSX is type insensitive if you're using it
If you run git mv tony.JPG tony.jpg it will rename it in git
So the issue was resolved when I did a hard reset on my PC. I am using Windows 10. I believe the issue is a bug as the issue resolved itself (i.e. the file name changed) after I ended up doing a hard reset on the PC. It could be an issue with my machine and/or VS. Hopefully this will help someone else that comes across the same issue.

Local node_modules in different location

I'm working on an Angular project on a distante machine via a VM and I'm oblige to delete the node_modules folder before closing my session. If not, loading my profile will crash because of the node_modules size (400Mb).
Is there any way to save node_modules in another location and use it in my project?
To my knowledge there is no way to do this. However, even if there was I believe it would be the wrong solution.
I’ve have plenty of experience of working remotely on vms and there is no reason why this 400mb folder should crash your system.
Get the system administrator to fix this issue instead

Where can I Store json file for use after building the app in node-webkit?

Is there any specific folder where I can store my files so that the app can use it later after building? Like Meteor has a private folder, is there any folder for node webkit?
As far as I know there is no predefined path and it is not needed. You can access any file with relative path from current dir. Just do not forget to add it into final build.

Meteor initial files

I created a new Meteor project in WebStorm and it generated hello.html file which is the default page of the app, and hello.js file.
Now the thing is that I don't want these files to be named "Hello". How can I change the default/initial files of Meteor?
I searched references for these files in the project but I didn't find anyone, meaning that they are not defined hard coded.
Any help will be profoundly appreciated!
Edit: I just found out that I can name the initial file when I create a new Meteor project in WebStorm. I'd rather change it in the current project than creating a new one though. Is this possible?
if you create new project in command line then running meteor create appName will generate files appName.js, appName.html and appName.css
in general, it does not matter what are the file names in meteor. Naming starts to matter a bit more once you start organising files into folders, but for a start you can ignore that.

Resources