Displaying 20 results from an estimated 30000 matches similar to: "Deploying rails application"
2009 Nov 24
2
Deploying Error: undefined method 'generate_best_match='
Hey guys,
I''m quite new to rails and experiencing some problems with the
deployment of my application to a web server.
I am using github, can connect to the server, "cap deploy:check"
and :setup run fine, but when I want to use "deploy:cold" or migrate
my database (rake RAILS_ENV=production db:migrate) I get this error:
rake aborted!
undefined method
2009 Aug 05
2
MySQL noob question: Where can I find the database when I create one?
See my screenshot of the command here.
http://a.imagehost.org/0843/mysqladmin.png
When I type the following:
mysqladmin create <database_name> --user=root --password=xxxxxxxx
Is my command executed simply by pressing "Enter" after the command?
Am I missing some syntax?
If the command has been executed , what directory can I find this
database?
How does this relate to MySQL
2006 Jul 10
7
How to obscure/encrypt password parameter?
Hi all-
I am building an application that includes a login screen. During
development I found that user passwords are logged by Rails in plain
text -- this will not be acceptable to my users. Is there a way to
obscure/encrypt incoming password parameters or not write them to the
log files at all? One thought was to use Javascript, but I was not sure
how secure that would be.
Thanks,
Josh
2006 Mar 30
11
Capistrano/SVN: Deploying different database.yml for live?
Greetings,
Today I''ve been working out how to begin using Capistrano and so far I''m
impressed. Even in my situation, learning Rails and deploying to a
single server, it''s incredibly helpful. I do have one small question
though:
In using Subversion I''ve used the "ignore" feature to ignore my local
database.yml file, because my local database and
2011 Sep 02
1
can't compile assets on prod due to asset_host config && SSL requirement
My production asset_host config looks like this:
config.action_controller.asset_host = Proc.new { |source, request|
if request.ssl?
"#{request.protocol}#{request.host_with_port}"
else
"#{request.protocol}assets#{(source.length % 4) +
1}.example.com"
end
}
...which is more or less straight from the docs:
2007 Nov 20
4
cap deploy:spec
fyi, I just posted this
http://www.vaporbase.com/postings/Running_rspec_after_you_deploy
- linoj
2009 Aug 03
5
webcam image capturing
Hi
Could anybody please advice me to work with wecamera in Rails. What i
want to do is to capture webcam images from a machine and send that data
to a remote server there it needs to be processed. I have no idea of
where to start.Please help
Thanks in advance
Sijo
--
Posted via http://www.ruby-forum.com/.
2012 Mar 29
25
Unable to deploy to Apache
Hi All,
Can someone please help? I''ve been banging my head against for wall
for 2 months; all of which has been spent trying to set up ROR. So I
actually haven''t written 1 line of code :( Any help would be greatly
appreciated :)
I''m following the 4th edition of "Agile Web Development with Rails".
So, I''m able to deploy the site via WEBrick.
2006 Apr 26
2
Deploying Rails Application?
Hi, after someone has performed the ''rake freeze_gems'', how does one reverse
this action? I guess my goal was to deploy a 1.1.2 rails application on a
1.0 rails host. Is this the correct step to perform for deployment. If any
one has any insight, please drop me an e-mail and thanks in advance.
Peace,
-Conrad
-------------- next part --------------
An HTML attachment was
2006 Apr 24
4
[TIP] Ensure your test data is valid
Recently I wanted to check that my test data was valid. Seems like a
reasonable thing to want to do so I thought I''d share the rake task. Add
this code to a rake file in lib/tasks and run with rake
db:fixtures:validate. It will print out the class, record id and error
messages for any model objects that fail validation.
Enjoy!
-Jonathan.
--
namespace :db do
namespace :fixtures do
2006 Jul 05
10
rake migrate RAILS_ENV="production"
On the wiki it says to migrate your DB to production, you can run:
rake migrate RAILS_ENV="production"
This is taken from:
http://wiki.rubyonrails.com/rails/pages/UnderstandingMigrations
My database is set up with correct MySQL permissions granted and the
database.yml is pointing at it. I get no errors when I run it, but
equally my production database does not change at all.
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
Hi.
I am using BackgrounDRb to process thumbnails and upload to S3 -
things are hunky-dory in development (thumbs are generated, these are
uploaded to S3, the metadata is saved to trhe DB, and I get a nice
status page updated by periodic calls via ask_status), but when I
tried to deploy to our staging server and stop/start BackgrounDRb via
Capistrano, things blew up - well, not exactly,
2009 Jul 19
9
Equipment_URL Failed to Generate (new_equipment_path)
I''m trying to use new_equipment_path, which creates the appropriate
link. But, when trying to evaluate "equipment/new" I get the error
below. I''ve included my routes (rake route). Equipment is one of those
words that pluralizes to "equipment", so the singular is right (from
what I know from this forum.
Any help would be appreciated.
Error:
equipment_url
2008 Oct 08
9
Plugins and the test environment
Hi guys. I''m writing a plugin for use in the test environment.
However, when I run ``rake test'''' or ``rake spec'''', RAILS_ENV is set
to "development" when my plugin''s init.rb is run.
How do you configure a plugin to load require a file in the test
environment?
Thanks,
Nick
--~--~---------~--~----~------------~-------~--~----~
You
2007 Dec 26
2
How to set environment when calling rake task inside another
This is what I have inside a rake task. In this rake task I need to call
another rake task called email:send_messages. However I need to pass the
RAILS_ENV as ''staging''.
Rake::Task["rake:email:send_messages"].invoke
I tried a lot of variations but none of them work.
Rake::Task["rake:email:send_messages"].invoke RAILS_ENV=staging
2007 Mar 17
10
a WARNING about cruise task or user-specified build task for Rails
If (like me) you use ccrb to test a Rails app
and (like me) you define your own :cruise task, because, for
example, you use rspec rather than Test::Unit
and (like me) you have the RAILS_ENV ||= ''production'' line in
environment.rb (because, like me, you use crummy shared hosting)
Your build will run in production mode, possibly screwing up your
production database,
2008 Aug 29
2
rake db:test:prepare
Hi
I am using postgres And I have already development database..When I
give
rake db:test:prepare it gives
sh: dropdb: command not found
sh: createdb: command not found
But how ever test db is created Same happens also when rake
db:test:clone
I would like to know why I am getting this message
Thanks in advance
Sijo
--
Posted via http://www.ruby-forum.com/.
2009 Sep 22
6
Import excel / csv files
Hey,
What way is the best to do imports of CSV files?
2008 Mar 05
4
Vlad the Deployer??
I''ve been playing around with Vlad the deployer, and quite like it.
However, has anyone used it to stop/start background rb processes via
the ./script/backgroundrb script?
Eric
-----------------------------------------------------
Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com
2007 Apr 19
4
convergence
hie..
how can i write a loop that makes algorithm keeps repeating until a solution
is converged?do i use a for loop? i know that we can use for loop to ask for
a number of repetitions, but how to use it to ask the algorithm to keep
repeating until a solution is converged?
Thanks
--
View this message in context: http://www.nabble.com/convergence-tf3606834.html#a10076822
Sent from the R help