Comments (5)
Checkout this plugin for managing secret keys: https://github.com/railsblueprint/mina-secrets-transfer
from mina.
You can set an env var of RAILS_MASTER_KEY=yoursecret
or put the master.key
in your shared files directive:
set :shared_files, fetch(:shared_files, []).concat(%w(
config/master.key
))
I would probably just suggest you put the value RAILS_MASTER_KEY
along side your other environment variables.
from mina.
Maybe i was unclear: I do have my deploy working. (and i don't use environemt since it can be avoided)
The suggestion was mainly to update the rails part / documentation.
But if you are beyond maintenance i understand, just close this.
from mina.
Issue here with the shared files:
set :shared_files, fetch(:shared_files, []).concat(
['config/credentials/staging.key', 'config/credentials/production.key']
)
Then i run
❯ bundle exec mina setup to=staging
-----> Using [Staging]
-----> Setting up /var/www/travclub.com/staging
/home/deployer
total 24
drwxrwxr-x 6 deployer deployer 4096 Aug 24 15:23 .
drwxrwxr-x 4 deployer deployer 4096 Aug 24 12:42 ..
drwxrwxr-x 2 deployer deployer 4096 Aug 24 12:42 releases
drwxrwxr-x 7 deployer deployer 4096 Aug 24 14:08 scm
drwxrwxr-x 9 deployer deployer 4096 Aug 24 12:43 shared
drwxrwxr-x 2 deployer deployer 4096 Aug 24 15:23 tmp
Connection to 167.235.224.232 closed.
Elapsed time: 3.35 seconds
But the key files are not there:
deployer@travclub:/var/www/travclub.com/staging/shared/config/credentials$ ls -la
total 8
drwxrwxr-x 2 deployer deployer 4096 Aug 24 12:42 .
drwxrwxr-x 3 deployer deployer 4096 Aug 24 12:43 ..
deployer@travclub:/var/www/travclub.com/staging/shared/config/credentials$
Mina v1.2.4
Anything I'm missing? 🤔
from mina.
You are responsible for uploading your key files to /var/www/travclub.com/staging/shared/config/credentials
Mina will simply symlink the files in the shared folder into the current release.
from mina.
Related Issues (20)
- No password was specified in environment variable CODA_PRIVKEY_PASS HOT 2
- PRESUMED ABANDONED ☠️ HOT 2
- Mina version managers plugin HOT 3
- Better support for CLI variables
- Mina Resurrection HOT 2
- Deployment logs HOT 2
- Document supported operating systems and prerequisities
- Add flag to skip cleanup on failed deploy
- [v1.2.4] run(:local) issue HOT 1
- Stuck on Fetching new git commits HOT 2
- Contributing Guide Missing
- mina 1.2.4: Allow multiple deployments with different `RAILS_ENV` HOT 2
- Adopt to new standard of bundle flags [proposed Label] enhancement
- run(:local) command not found when using execution_mode: :system
- Are we considering port mina to Crystal? HOT 1
- assets:precomile fails, but deploy succeeds HOT 1
- Ugh... not able to fetch new commits HOT 2
- mina init fails with NoMethodError: undefined method `exists?' for File:Class HOT 3
- Rails 7.1 Credentials in Production
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 mina.