Running rake db:setup on server, how to change to production mode?

Running rake db:setup on server, how to change to production mode?

I am SSH'd into the server (nginx, ubuntu, passenger)

Answers


rake db:setup RAILS_ENV=production

Need Your Help

PHP library object error

php imagick

I am having an issue with imagick php library.

With PHP and MySQL, should you check for rollback failures?

php mysql transactions innodb

I'm using PHP's mysqli library. Database inserts and updates are always in a try-catch block. Success of each query is checked immediately (if $result === false), and any failure throws an exceptio...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.