Last active
December 31, 2019 06:34
-
-
Save ahmad19/7669a4b476c7c87c176c182c22b55f28 to your computer and use it in GitHub Desktop.
Sidekiq installation on digital ocean droplet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Log in to the droplet | |
ssh deploy@ip_address | |
# install redis server | |
sudo apt-get install redis-server | |
# create sidekiq pid file | |
sudo nano project/shared/tmp/pids/sidekiq.pid | |
# give permission to the pid file | |
sudo chmod 777 project/shared/tmp/pids/sidekiq.pid | |
# copy the content of systemd file at sudo vi /lib/systemd/system/sidekiq.service from | |
# https://github.com/mperham/sidekiq/blob/master/examples/systemd/sidekiq.service | |
# enable sidekiq service | |
sudo systemctl enable sidekiq.service | |
# start sidekiq server | |
sudo service sidekiq start | |
# check sidekiq logs for error | |
sudo cat /var/log/syslog | |
# Dec 31 06:27:17 ubuntu-14-04-mus systemd[1]: Started Session 89413 of user deploy. | |
# Dec 31 06:29:38 ubuntu-14-04-mus systemd[1]: Reloading. | |
# Dec 31 06:29:38 ubuntu-14-04-mus systemd[1]: Started ACPI event daemon. | |
# Dec 31 06:29:46 ubuntu-14-04-mus systemd[1]: Started sidekiq. | |
# check sidekiq process running or not | |
sudo ps aux | grep sidekiq | |
# deploy 10624 39.3 13.3 458104 135620 ? Ssl 06:29 0:05 sidekiq 5.2.7 sales_with_tables [0 of 10 busy] | |
# deploy 10675 0.0 0.1 12916 1020 pts/0 S+ 06:29 0:00 grep --color=auto sidekiq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment