Task Command Check Service Status systemctl status openclaw View Live Logs journalctl -u openclaw -f Edit Environment nano /opt/openclaw.env Start TUI /opt/openclaw-tui.sh
Restart service: systemctl restart openclaw
Sidekiq jobs can be enqueued or scheduled. Enqueued means that they are gonna be picked up as soon as possible, scheduled jobs will be enqueued at some specific time.
When using ActiveJobs, Rails will return a job_id after sending the job to ActiveJobs
job = UserMailer.send_invite(params).deliver_later
| # Update-Upgrade & Install docker | |
| apt update | |
| apt full-upgrade | |
| # Docker -> https://docs.docker.com/engine/install/ubuntu/ | |
| # Redis (https://hub.docker.com/_/redis) | |
| mkdir redis_data | |
| docker run --name redis -d --restart always -p 6379:6379 -v /root/redis_data:/data redis redis-server --save 60 1 --loglevel warning --requirepass <password> | |
| # PG (https://hub.docker.com/_/postgres) |
| #!/usr/bin/env ruby | |
| require 'httparty' | |
| url = '' | |
| concurrency = 15 | |
| threads = [] | |
| concurrency.times do |i| | |
| threads << Thread.new do |
| #!/usr/bin/env ruby | |
| require 'httparty' | |
| url = 'https://google.com' | |
| concurrency = 15 | |
| threads = [] | |
| concurrency.times do |i| | |
| threads << Thread.new do |
bundle updaterails app:update
load_defaults version in config/application.rb to 7.0bin/rails importmap:installbin/rails turbo:installbin/rails tailwindcss:install| # Apple Sillicon | |
| rvm gemset empty | |
| gem install bundler -v '2.3.4' # Or more recent version | |
| bundle config set force_ruby_platform true | |
| bin/setup && bin/startup |
| # https://superuser.com/q/451032 | |
| lsof -nti:XXXX | xargs kill -9 | |
| # Rails | |
| lsof -nti:3000 | xargs kill -9 | |
| # Webpacker dev server | |
| lsof -nti:3035 | xargs kill -9 |
| vcgencmd measure_temp | egrep -o '[0-9]*\.[0-9]*' |
| # Find PID of process | |
| lsof -n -i4TCP:3000 | |
| kill -9 [PID] |