Comments (8)
To be in line with Rake's usage, I believe should be rake -f script.rb
.
The modification here will be very minimal, this line would just have to be suppressed if -f
is given.
from mina.
This one-code-line edit should do the trick:
diff --git a/bin/mina b/bin/mina
index 6379630..05c1ca7 100755
--- a/bin/mina
+++ b/bin/mina
@@ -26,7 +26,10 @@ Rake.application.instance_eval do
standard_exception_handling do
# Initialize Rake and make it think it's Mina.
init 'mina'
- @rakefiles = ['Minafile', 'config/deploy.rb']
+
+ # Assume different default Rakefiles.
+ # (The only way a @rakefiles can have multiple values is if -f isn't specified.)
+ @rakefiles = ['Minafile', 'config/deploy.rb'] if @rakefiles.size > 1
# Workaround: Rake 0.9+ doesn't record task descriptions unless it's needed.
# Need it for 'mina help'
from mina.
This is in v0.1.1
now--just do mina -f file.rb
. Does it suit your requirements?
from mina.
Yep, totally. I cant believe i missed that -f option in rake.
from mina.
To confirm, does this mean I can use mina on a central deployment server which does not have access to the source code and then use it like so:
mina -f apps/app1.rb
# => Deploys app 1
mina -f apps/app2.rb
# => Deploys app 2
from mina.
Indeed you may, @garethrees.
from mina.
Yeah, the syntax to deploy would be:
mina -f apps/app1.rb deploy
mina -f apps/app2.rb deploy
Im using it the same way
from mina.
Amazing, thanks both
from mina.
Related Issues (20)
- the Italiantranslation is to be corrected HOT 1
- 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
- master.key HOT 5
- 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
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.