bigboxsoftware / dokku-sidekiq Goto Github PK
View Code? Open in Web Editor NEWdokku-sidekiq
dokku-sidekiq
I have Rails 4.2 running fine with postrgres but cant get sidekiq to work at all.
Any suggestions?
This is my first attempt at writing a Dokku plugin so comments and suggestions very welcome
Do I need to install this? or I can just specify the worker in Procfile and everything will work?
I'm using this plugin to run sidekiq with my Rails app to send an email, using:
MyMailer.delay.welcome_email(user_id)
When I type this in the rails console
(using dokku run app rails console
), it adds it to the sidekiq queue .. but nothing gets processed.
When I run dokku run app sidekiq
on my server, that's when the job is processed and the email is sent. So my question is .. if sidekiq is running, then shouldn't it process the job immediately?
I'm using a REDIS_URL
environment variable to specify the redis resource that sidekiq should use, but I don't know if it's being picked up in the plugin..
With the latest version of dokku, on every deploy I get an error that dokku is unable to kill the docker container id in the WORKER file. I'm not sure if newer versions of dokku auto kill containers on deploy and thats why it can't find the Container ID, but the only way I can currently deploy is to manually remove the WORKER file from the project.
Maybe the post-deploy hook should check to see if the container id is still running before it tries to kill it?
Looks like the cause is this line:
https://github.com/bigboxsoftware/dokku-sidekiq/blob/master/post-deploy#L14
if ps -p $oldid > /dev/null
The WORKER
is a docker container id, but you're trying to call ps -p on it?
The plugin works fine, however the deployment log is covered in the following statement:
remote: 2015/12/01 14:58:02 open /var/lib/dokku/plugins/available/sidekiq/plugin.toml: no such file or directory
You can see it on this Travis log, scroll down and open the "Deploying application " section.
Isn't affecting functionality, at least for me, but it'd be great for this to not litter the logs.
Currently, I build an app by using rails, paperclip and sidekiq. Locally test is ok. But in the dokku, by using your plugin, it raise an error which is
Errno::ENOENT: No such file or directory - <file name>
I have done lots of trying, like, cp file locally, then use sidekiq to read local file and the remove it.
What is going on?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.