I am using cloudfoundry to deploy a rails 3.1 app. Is there a way to run common rake commands, like for e.g. rake db:reset?
You can also push another instance of the application, purposefully setting the application type to 'Standalone' and also bound to the same services. You will be then prompted for a command to run which you can set to something like;
bundle exec rake VERBOSE=true QUEUE=default resque:work
This example starts a Resque worker but you could easily start a different task.
Here's a similar question on their forums: http://support.cloudfoundry.com/entries/20160007-anyway-to-run-rake-db-seed-for-rails-app
Related
I have deployed my application onto openshift and everything is working great until I tried to access the rails console.
ssh openshiftsshlogin
cd ~/app-root/repo/
rails c
When I run the above command I get this error.
bash: rails: command not found
My web application is open source which may help to diagnose the error.
Link to the Github repository.
Also when I run...
bundle exec rails c
I get the following error,
bundler: command not found: rails
Install missing gem executables with `bundle install`
/usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/lib/bundler/friendly_errors.rb:10:in `with_friendly_errors': uninitialized constant Thor::AmbiguousTaskError (NameError)
from /usr/lib/ruby/gems/1.8/gems/bundler-1.5.2/bin/bundle:20
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19
I dont belive i need to manually install the rails gem as the gear is running a rails application just fine.
try RAILS_ENV=production bundle exec rails console
So weirdly enough I solved the issue by just running "gem install rails" even though I should not of needed to. So if a future person runs into this issue just run...
gem install rails
RAILS_ENV=production bundle exec rails console
That should solve the issue.
I am new on ruby on rails. and am trying to deploy my application from my local system to heroku, but when i run heroku run rake db:migrate, i get this error msg:
Running rake db:migrate attached to terminal... up, run.7855
!
! Error connecting to dyno, see https://devcenter.heroku.com/articles/one-off-dynos#timeout-awaiting-process
I've followed the link to the site but i didn't understand what was said there. Please any help as to how deploy it successfully will be much appreciated.
Thank you
Seems like your have no access to rendezvous.runtime.heroku.com:5000
Ask your system administrators or internet service provider to allow this address and port for you
This problem solution already described at https://devcenter.heroku.com/articles/one-off-dynos#timeout-awaiting-process, but I didn't understand at once too :)
You can check access to necessary resource by telnet rendezvous.runtime.heroku.com 5000 command
Update:
Recently I encountered with problem when rendezvous.runtime.heroku.com:5000 is accessible but heroku run ... command doesn't work.
In this case command must be modified to heroku run:detached ...
It helped me, but interactive utilities like bash will not work because of output will be available only in logs
I am currently developing a project management system using Bitnami Redmine. I am using Redmine 1.4.7.
I found a plugin on https://github.com/f0y/due_date_reminder/tree/redmine-1.4 which I want use on my project. I copied the plugin to C:\BitNami\redmine-1.4.7-2\apps\redmine\htdocs\vendor\plugins. I followed the instructions provided but when I try to install the plugin it does not get migrated.
I'm running this command in C:\BitNami\redmine-1.4.7-2\apps\redmine\htdocs:
bundle exec rake db:migrate_plugins rails_env=production
and receive the following error:
Expected C:/BitNami/redmine-1.4.7-2/apps/redmine/htdocs/app/models/user.rb to define User
Tasks: TOP => db:migrate_plugins => environment
See full trace by running task with --trace
I don't get what is the problem with the user.rb file. Please help.
I am running the edx open source platform on an ec2 instance.
It consists of two platforms:
1. lms: runs on 0.0.0.0:80
2. cms: runs on 0.0.0.0:81
There started with the following command
rake lms and rake cms respectively
It's actually a django application (mostly), but i think it is this way because rakefiles are used to provide some more configurations (not really sure)
Since the django server is not meant to be used in production, i want to use apache to run the two services.
Can anyone guide me to do this?
Thanks already :)
Error 402: App packaging failed: 'Failed synchronizing resource pool'
I got this error when deploy a node.js application to api.cloudfoundry.com.
the vmc I used is:
vmc 0.3.10
I want to know how does this error happened. Is there something wrong with my vmc? or something wrong with my node.js application?
Thank you.
You'll definitely want to upgrade to the latest vmc. "gem update" should refresh it to 0.3.18 for you but if not, "gem install vmc" to grab the newest.
What steps did you follow to deploy the app - did you just run vmc push and follow the prompts, did you have a manifest.yml file in place (probably not as vmc 0.3.10 may have pre-dated manifest support), did you provide additional parameters to vmc push?