Comments (4)
I think the problem is that Ember-cli-rails is creating N ember instances for each worket. While debugging other problem i had i found that we shouldn't have more than 1 ember watch running over the same directory at a time. Ember CLI seems to be using tmp as a place to store some cache-related data. The result is like accessing the same no-threadsafe data set with two threads: a race condition.
I don't know too much of the code to know if there is some way to run one global ember process per folder (in a way similar to how zeus uses a .zeus.sock file) instead of one ember process per rails process (worker). It could be a better solution than the workaround.
from ember-cli-rails.
I think the problem is that Ember-cli-rails is creating N ember instances for each worket.
That is correct.
Honestly, I don't know how to detect multiple worker situation properly and consistently. The assumption was that this should only happen in development environment and people usually don't run multiple workers in development environment. Apparently it's false :)
from ember-cli-rails.
I think the problem is that, sometimes, it's easiest to just put gem "puma"
and gem "unicorn-rails"
in the main body of the Gemfile and making things without thinking of different environments. For example, we simply could make:
gem :webrick, :group => :development
gem :puma, :group => :production
But anyway, there is no assumption of just one worker and maybe in the future there could be a server which uses many workers everywhere and it could help to just have covered the situation of accidentally creating many embers.
Why do you think of using an empty file to detect if the ember process was already running?
from ember-cli-rails.
I've created a new issue to consolidate these two #94. Let's all move there.
from ember-cli-rails.
Related Issues (20)
- Mounting assets doesn't build ember app
- Build and Compile for Test Environment
- Mount in Rails engine HOT 4
- Log SKIP_EMBER when true in Development HOT 6
- Support for Yarn workspaces? HOT 1
- How to fix: "sh: /Users/username/Library/Mobile: No such file or directory"? HOT 5
- Automate tasks for Deploying Ember-CLI-Rails app on AWS
- Automate tasks for Deploying Ember-CLI-Rails app on AWS
- separate ide and deploy?
- Capistrano Deployment failling
- vendor.css wants fonts from /assets instead of /fonts HOT 2
- Clobbers active storage routes
- Redirecting / Rendering Ember route links in Rails codebase
- New Release HOT 2
- No ember-cli-rails-addon v0.11.0 HOT 1
- Cannot figure out how to prebuild Ember App in Development so that Rails will have it ready on first load. HOT 3
- Please release the code in the HEAD on the main branch to enable use of ruby 3 HOT 1
- Support Ruby 3.1, Rails 7.0, and Ember 4.x HOT 2
- Uncaught TypeError: Cannot read properties of undefined (reading 'ajaxPrefilter')
- Sprockets 4.2.0: Generates 404 on all assets HOT 2
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 ember-cli-rails.