Frage

When deploying my Rails App to Linode via Capistrano/Unicorn, when running this command "bundle exec cap deploy:cold" it's giving the error :

    The --deployment flag requires a Gemfile.lock. Please make sure you have checked your       Gemfile.lock into version control before deploying.
command finished in 495ms
 *** [deploy:update_code] rolling back

I've searched around and can't seem to find a solution. Any one know any solutions? How do you check your gemfile.lock into version control

https://github.com/Ruekompa/itcinema.git

After a little while of running running countless commands and attempts, I now notice there is a folder called cached-copy residing in /home/USERNAME/apps/APPNAME, and it contains my app.

UPDATE: I have fixed everything. I simply rebuilt ubuntu server on linode and started over. This time my deployment worked. Thanks everyone

War es hilfreich?

Lösung

I have fixed everything. I simply rebuilt ubuntu server on linode and started over. This time my deployment worked. I changed Ubuntu 12.04 to 10.04. Perhaps it was something in my capistrano recipes, for I was piggy backing off of someone else's code that was using 10.04.

Andere Tipps

Did you add the Gemfile.lock to your repository?

you can add it by

# in your app root dir
git add Gemfile.lock
git commit -m "Added Gemfile.lock to repository"

EDIT

Did you run the following command?

bundle install --deployment
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top