Comments (7)
Distillery doesn't include the :mnesia
app by default, so you'll have to explicitly state that it's an included application in your mix.exs
for it to be built into your release:
defmodule MyApp.Application do
use Mix.Project
# ...
def application do
[
mod: {MyApp.Application, []},
extra_applications: [:logger, :runtime_tools],
included_applications: [:mnesia] # <--- Add to :included_applications
]
end
# ...
end
from pow.
I'm not sure if it'll be picked up in :extra_applications
.
from pow.
Also, if you experienced a failed start of your app the first time you deployed, because mnesia wasn't available, then remove the initialized mnesia data files in production and restart with the fixed version. I've experienced that these initialized files can't be used if the whole app is halted.
from pow.
FWIW, I had trouble get this running myself the first time around. This was a production app with a few hundred daily visitors. The mnesia errors are difficult to read, but ever since I got the mnesia files initialized properly it has been working 100% of the time.
from pow.
@jung-hunsoo did you get this working?
from pow.
@danschultzer Oh sorry. I've been in other issues..
Yeap, it's working now. Both dev
and prod
works fine. Actually I don't know it's working properly. At least it showed no error.
from pow.
Great! It's working with mnesia if there's no errors.
from pow.
Related Issues (20)
- Reset password - test fails issue HOT 1
- Upgrading to Phoenix 1.7 HOT 5
- Create account without email/password using some unique ID?
- Phoenix 1.7 compilers warning HOT 1
- Maintain case when storing emails HOT 2
- Permissions issues with mnesia backend for Pow HOT 15
- Improve mix tasks
- Crash @missing_field? in Schema.ex HOT 1
- Inject values on registration HOT 2
- users_context seems to be ignored HOT 1
- Upgrading POW from 1.6 to 1.7 HOT 12
- Changeset errors into view HOT 1
- POW & LiveView - best way to implement `assigns.current_user` ? HOT 7
- Elixir 1.15 deprecation warnings HOT 1
- Persistence of stale session ids in MnesiaCache HOT 10
- Phoenix 1.6 App upgraded to 1.7 warning about layout conflicts. HOT 2
- POW with MongoDB HOT 2
- `mix pow.install` throws error HOT 2
- How to migrate from `pow_mailer_layout` to `pow_mailer_layouts` HOT 1
- Extract `validate_email` and its private functions into a new library? 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 pow.