Cap development/production deploy:
error: RAILS_ENV="production" rake assets:precompile
Killed
The error is coming because of out of RAM memory, so need to do swap the memory-
error: RAILS_ENV="production" rake assets:precompile
Killed
The error is coming because of out of RAM memory, so need to do swap the memory-
follow these command for memory swapping -
sudo swapon -s
Check how much disk space now you have:
df
create a swap file:
1. Allocate a file for swap
sudo fallocate -l 2048m /mnt/swap_file.swap
2: Change permission
sudo chmod 600 /mnt/swap_file.swap
3: Format the file for swapping device
sudo mkswap /mnt/swap_file.swap
4: Enable the swap
sudo swapon /mnt/swap_file.swap
5: Make sure the swap is mounted when you Reboot. First, open fstab
sudo nano /etc/fstab
and
# /etc/fstab
/mnt/swap_file.swap none swap sw 0 0
Save it.
run cap production deploy
or
runrake assets:precompile on server
Cheers,
Hemant
No comments:
Post a Comment