Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
This isn't exactly a production deployment of rails, or I'd go the standard Passenger route - I simply want it to start on port 3003 and sit there.
I'm running the following .sh script from rc.local
source /usr/local/rvm/scripts/rvm
/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby /root/rails_app/script/rails server -d --port 3003
I seem to recall the first line is required by rvm to enable ruby\rails commands in the shell. Unfortunately, this doesn't seem to do the trick.
I'm having a hard time diagnosing the issue.
Is there a way to see the error log of scripts that are executed via rc.local?
you can not source RVM in sh shell, you need to use a wrapper:
/usr/local/rvm/wrappers/ruby-2.0.0-p247/ruby \
/root/rails_app/script/rails server -d --port 3003
you can find more information about it here - http://rvm.io/integration/init-d
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 months ago.
Improve this question
I installed Airflow with Docker on Windows 11 a while back. There is no Airflow folder in both of the Programs directories on my laptop.
I used a Revo Uninstaller to uninstall the program. This is apparently supposed to uninstall it through the logs.
I have an "airflow-docker" file on my Desktop with the dags,logs and plugins folders and the docker-compose yaml file.
How do I ensure the uninstalling has been successful?
Docker doesn't install the software within the container on your host. If your docker-compose.yml has volumes defined, then those are just files, not "installed", and you can remove them, if you want.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I am trying to build an docker image based on Ubuntu 16.04. Is it possible to install and use spyder3 on this image?
What I have done so far...
Added a normal user on Ubuntu 16.04(base image)
Installed python3.6.4
Installed spyder3
and I get this error:
genie#667b3f2734a1:~$ spyder3
Spyder: cannot connect to X server :0.0
Any assistance would be much appreciated :)
(Spyder maintainer here) Spyder is a desktop application, so it needs an X server running on Linux for it to work. So you need to add python3-pyqt5 to your docker image, which should bring Xorg and all its dependencies with it. Then you need to start the server with startx.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 months ago.
Improve this question
Can I ask some help how can install this in windows 10 oh-my-zsh
Are there any prerequisite on this?
Another way to use oh-my-zsh is to use linux based OS on WSL2.
If you download Ubuntu or Linux based Operating system in windows 10/11 WSL2. Then you can use any terminal app that can be run on Linux. So this is also an way to install zsh with oh-my-zsh.
If you want something similar as oh-my-zsh for Powershell you can try oh-my-posh.
Windows does not have bash or zsh but I will still try to answer your question. This is nearly impossible to do something like installing oh-my-zsh without terminal utility. But I found Babun which is mostly similar to that. It has a pre-configured cygwin and integrated oh-my-zsh. So you may get your hands dirty with that.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a server with centos running rails application each time when I reboot my system I have doing following tasks manually. How to enable all the following tasks in start up
To stop and start my nginx I am using
sudo fuser -k 80/tcp # to stop
sudo /opt/nginx/sbin/nginx # to start
And to start my postgresql I am using following command
service postgresql-9.2 start/stop/restart
Once I connect my server using ssh and try some postgresql command ill get error as
postgresql-9.2: unrecognized service
To avoid this am using command
export PATH=/usr/pgsql-9.2/bin:$PATH
And then ill use postgresql(Doing export command each time when I connect through ssh).
And I am using ghost blog facing same issue whenever I reboot my server I need to run following command to start my ghost blog
NODE_ENV=production forever start index.js
How to solve all these. Can any one help
You can add the process in your init script that is at /etc/init.d/
.You can further read run script on startup
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I'm trying to install Ruby on Rails and I was using SSH to login to the linux machine, when I started working, everything was fine and I'm sure there was a mistake I made where the file/directory permissions changed.
Now when I try to send a command like:
sudo apt-get install rubygems
I get this error:
sudo: can't open /etc/sudoers: Permission denied
Not sure what to do next, what options do I have. I can login as root user as well but I don't want to dig a deeper hole for myself.
The linux machine is running on Ubuntu 10.04.
Try this:
chmod -R 0440 /etc/sudoers.d
may be you changed the permissions by mistake.
Have you checked whether the file /etc/sudoers exists or whether the permissions have changes ?
This question may be better suited to the Linux/Ubuntu (or whatever flavour of Linux you have).
See: https://stackoverflow.com/questions/tagged/ubuntu