Comments (5)
Please upload an example project I can use to test this. Thanks.
from codekit.
I won't upload a project because it is like 7k files and my internet isn't the greatest, but it is quite easy to make a new one, since it happens even on a brand new project:
https://laravel.com/docs/5.2/installation
I configure apache normally, just a virtual host on laravel.local or whatever, and then add the project to codekit, it doesn't matter if it is through the browser refreshing port or directly to apache.
It has this folder called /storage/framework/sessions with files with an MD5 or SHA-1 hashes, then just go to your code kit browser refreshing address or your virtual host, and as soon as you enter, Laravel makes a new session file, and every time you change page it will update it and codekit will make a "compiled" version that it is exactly the same content, on the same folder but with a dot at the end.
By the way, the right click > skip this folder doesn't work correctly (I will look up if there is already an issue for this), but it adds it to the Skipped Folders field, it refreshes the project but it doesn't really ignore it? Or is it because those files (the session files) are already on the codekit3.config files array?
from codekit.
What's the status of this in RC1?
from codekit.
It's still occurring. My system gets into a loop. Codekit refreshes the browser. Refreshing the browser writes a new session file over the top of the old session file. A duplicate file is written with a dot at the end. Codekit sees a new file has been updated (even though its contents hasn't changes) and refreshes the browser. Refreshing the browser writes a new session file. Repeat.
I've tried to set ignore on the folder storage/framework/sessions but it doesn't help.
However, if I ignore the storage folder it seems to right itself.
I found my own work-around which was to change the session in the .env file from "file" to "cookie" and it works fine (as Codekit isn't writing over the cookie)
*edit. It also works if I just select 'sessions' as a folder to ignore.
from codekit.
Okay. Testing with RC1, when I right-click the sessions folder and choose "skip this folder", it is indeed skipped correctly. That's the solution to this problem—if you're using a framework that spits out caches or logs, you need to tell CodeKit to ignore that location. There's no way for the app to know, "Oh, this is just a log file; I don't have to do anything" because every framework writes them differently and in different spots.
That said, I've added the path to this sessions folder as one of the default skipped paths for New Projects. This will not apply to beta testers, but it will for anyone who installs the app for the first time from now on. Beta testers can do the same by editing New Project Defaults and adding /storage/framework/sessions
to their list.
from codekit.
Related Issues (20)
- Kit compiled to html has leading whitespace when multiple variables are used HOT 2
- Semicolon classes from TailwindCSS (3.x) ignored by PurgeCSS HOT 2
- [Feature Request] fast project switching
- Cache-busting for kit files and font links with preload attribute generates a FOUT. HOT 1
- Babel custom plugins – minify HOT 3
- Dependencies not compiling to build
- watch files outside project folder to trigger browser reload HOT 6
- When changing npm setting "Package.json folder", tailwindcss goes 404 HOT 2
- [Feature Request] copy js or css files from node_modules panel
- Babel Transpile Error. HOT 5
- Sometimes losing ES6 Bundle format settings HOT 2
- How to import CSS into JS HOT 1
- Pug Output Style HOT 1
- PurgeCSS wrongly removes all Tailwind-style colon classes HOT 3
- Drag 'n drop crashes app HOT 7
- Not working with DDEV
- Hooks fail to run npm scripts HOT 1
- Browser refresh makes page go to top of site, then scrolls down HOT 2
- CodeKit slow in responsive mode in Chrome ONLY HOT 3
- Using index stylesheets in scss with the new @use and @forward rules is broken HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codekit.