Comments (9)
This part of code requires some attention, bigtuna should use Bundler.with_clear_env there but something didn't work for us when creating bigtuna. I'll take a look into this part and try to fix it -- no params should be set there.
from bigtuna.
does this mean that bigtuna is a CI for rails-only applications?
from bigtuna.
Nope, it runs arbitrary shell scripts. The env was set up so that it also supports rails apps.
from bigtuna.
also db:migrate RAILS_ENV=development
does not override the default one set by with_clear_env
from bigtuna.
You can try the branch:
https://github.com/appelier/bigtuna/tree/runner_env_fix
And see if it works for you: it uses the Bundler.with_clean_env and doesn't set any env's. If you want to set the env yourself it might be insufficient (although I'm not sure) to use ENV_NAME=env_value script/to/run
You probably want to use 'env' command
env ENV_NAME=env_value script/to/run
Let us know if the solution works for you! :-)
from bigtuna.
+1
. Confirmed this works great for us on a fairly quirky setup - our setup had issues under the default setup (we had to change BigTuna to delete the RAILS_ENV environment variable under the default setup).
from bigtuna.
+1
from bigtuna.
Recently discovered that we hadn't restarted our workers when we tried this, so we discovered a small problem - not one necessarily for Bigtuna to fix, but some people might run into this. Since bundler captures the ENV
when it is loaded in config/boot.rb, the environment variable BUNDLE_GEMFILE
is set (Rails sets this in config/boot.rb) even inside Bundler.with_clean_env
. This will affect any build scripts trying to use Bundler. The workaround is to use the --gemfile
option with bundle install
and use BUNDLE_GEMFILE=%build_dir%/Gemfile
in your build script. For example:
bundle install --path=%project_dir%/bundle --deployment --gemfile=%build_dir%/Gemfile
BUNDLE_GEMFILE=%build_dir%/Gemfile bundle exec rake
In the future it may be useful for Bigtuna to have an "environment variables" configuration section which will be applied to the entire build process (the above is an example - our build process is more complicated, and we have to set the environment variables on every line).
from bigtuna.
The issue is resolved, branch is merged into dev and regarding wuputah's comment I've created https://github.com/appelier/bigtuna/issues/issue/44
from bigtuna.
Related Issues (20)
- Project with VSC only (no steps) should build properly HOT 1
- Update docs
- Pages redesign/restyle. HOT 4
- Missing navigation buttons HOT 1
- build environment: remove RUBYOPT HOT 4
- Heroku environment variables HOT 1
- Duplicate a project HOT 1
- Multiple commits build
- Do a pull instead of clone? HOT 2
- CCMenu/CCTray support - XmlStatusReport generation
- Question: On deploying to EY AppCloud
- projects table, etc. getting purged HOT 2
- MySQL: Text field for output too short HOT 2
- "method `to_yaml' not defined in Class" on rake db:create HOT 7
- Bigtuna needs more maintainers HOT 3
- RSS Feed for 'In Progress'
- Add HipChat notifications.
- Installation page HOT 2
- Support Rails 3.2.x HOT 1
- http://bigtuna.appelier.com/ appears to be spam HOT 1
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 bigtuna.