Launch rails webrick server at startupHow do I start applications automatically on login?execute script after desktop loaded?rails & libpq-dev nasty dependenciesHow to start a never ending script at startupparse_rackup_file': rackup file (config.ru) not readable (ArgumentError) Unicorn Nginxerror while running ruby application at system startup in ubuntuRun Android Studio on reboot using shell scriptHow to autostart node forever and use spawn() as sudo on Ubuntu?Start script on system startup (Ubuntu 16.04.1)
Can a trainer send me a gift every day without opening my gift?
Responsibility for arrangement of elements - frontend or backend?
How could a sequence of random dates be generated, given year interval?
Why did the police not show up at Brett's apartment during the shootout?
How does kinetic energy work in braking a vehicle?
Why did the people of Zion never find evidence of the previous cycles?
What is this second smaller runway next to London City Airport?
What does /r mean in a score?
Regular sized fonts in oubraces package
How to deal with non-stop callers in the service desk
Why does Mainland China and Taiwan require Visas for each other's citizens?
Why do microwaves use magnetron?
apache httpd process be killed by kernel oom
How should I add a bit of space below a substack in an overset?
Is CR12 too difficult for two level 4 characters?
How much caffeine would there be if I reuse tea leaves in a second brewing?
How short does a trip need to be before flying is less safe than other forms of transportation?
How do functional equations for zeta functions arise from the structure of a homology group?
Coworkers accusing me of "cheating" for working more efficiently
Why would Climate activists disrupt public transport?
Why are so many cities in the list of 50 most violent cities in the world located in South and Central America?
A question on limit of integrals of "truncated" functions
For a command to increase something, should instructions refer to the "+" key or the "=" key?
Is it bizarre that a professor asks every student for a 3 inch by 5 inch photograph?
Launch rails webrick server at startup
How do I start applications automatically on login?execute script after desktop loaded?rails & libpq-dev nasty dependenciesHow to start a never ending script at startupparse_rackup_file': rackup file (config.ru) not readable (ArgumentError) Unicorn Nginxerror while running ruby application at system startup in ubuntuRun Android Studio on reboot using shell scriptHow to autostart node forever and use spawn() as sudo on Ubuntu?Start script on system startup (Ubuntu 16.04.1)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I want webrick running at startup. So I execute this command in terminal:
crontab -e
Then added this line to the end of the file
@reboot /home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production
and restarted Ubuntu. However, the server still didn't start when my Ubuntu booted.
Any help on this problem?
bash startup rails
add a comment
|
I want webrick running at startup. So I execute this command in terminal:
crontab -e
Then added this line to the end of the file
@reboot /home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production
and restarted Ubuntu. However, the server still didn't start when my Ubuntu booted.
Any help on this problem?
bash startup rails
add a comment
|
I want webrick running at startup. So I execute this command in terminal:
crontab -e
Then added this line to the end of the file
@reboot /home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production
and restarted Ubuntu. However, the server still didn't start when my Ubuntu booted.
Any help on this problem?
bash startup rails
I want webrick running at startup. So I execute this command in terminal:
crontab -e
Then added this line to the end of the file
@reboot /home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production
and restarted Ubuntu. However, the server still didn't start when my Ubuntu booted.
Any help on this problem?
bash startup rails
bash startup rails
edited Jul 6 '13 at 17:12
Karthik C
1,9795 gold badges16 silver badges24 bronze badges
1,9795 gold badges16 silver badges24 bronze badges
asked Jul 6 '13 at 16:29
petwhopetwho
1261 silver badge7 bronze badges
1261 silver badge7 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
I think the right way is to add this two lines in crontab:
PATH = /home/myname/.rvm/rubies/ruby-2.0.0-head/bin:$PATH
@reboot ruby script/rails server webrick -e production
Or, better, use this post to start webrick automatically on login.
Radeanu thanks for your answer but they both are not working for me. Any other idea?
– petwho
Jul 7 '13 at 15:33
@petwho Can you start it from terminal? If yes, how?
– Radu Rădeanu
Jul 7 '13 at 15:48
I am not sure what do you mean by starting it from terminal. However, I tried both on terminal and GUI approaches. For GUI approach (which you linked on your answer): I entered this line: "/home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production &" to "command" field (and event removed the ampersand character at the end of the command). They both not working. I also added "x" permission to all users to file under ~/.config/autostart/webrick and /etc/rc.local. I'm really getting hairy with this.
– petwho
Jul 8 '13 at 2:59
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f317133%2flaunch-rails-webrick-server-at-startup%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I think the right way is to add this two lines in crontab:
PATH = /home/myname/.rvm/rubies/ruby-2.0.0-head/bin:$PATH
@reboot ruby script/rails server webrick -e production
Or, better, use this post to start webrick automatically on login.
Radeanu thanks for your answer but they both are not working for me. Any other idea?
– petwho
Jul 7 '13 at 15:33
@petwho Can you start it from terminal? If yes, how?
– Radu Rădeanu
Jul 7 '13 at 15:48
I am not sure what do you mean by starting it from terminal. However, I tried both on terminal and GUI approaches. For GUI approach (which you linked on your answer): I entered this line: "/home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production &" to "command" field (and event removed the ampersand character at the end of the command). They both not working. I also added "x" permission to all users to file under ~/.config/autostart/webrick and /etc/rc.local. I'm really getting hairy with this.
– petwho
Jul 8 '13 at 2:59
add a comment
|
I think the right way is to add this two lines in crontab:
PATH = /home/myname/.rvm/rubies/ruby-2.0.0-head/bin:$PATH
@reboot ruby script/rails server webrick -e production
Or, better, use this post to start webrick automatically on login.
Radeanu thanks for your answer but they both are not working for me. Any other idea?
– petwho
Jul 7 '13 at 15:33
@petwho Can you start it from terminal? If yes, how?
– Radu Rădeanu
Jul 7 '13 at 15:48
I am not sure what do you mean by starting it from terminal. However, I tried both on terminal and GUI approaches. For GUI approach (which you linked on your answer): I entered this line: "/home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production &" to "command" field (and event removed the ampersand character at the end of the command). They both not working. I also added "x" permission to all users to file under ~/.config/autostart/webrick and /etc/rc.local. I'm really getting hairy with this.
– petwho
Jul 8 '13 at 2:59
add a comment
|
I think the right way is to add this two lines in crontab:
PATH = /home/myname/.rvm/rubies/ruby-2.0.0-head/bin:$PATH
@reboot ruby script/rails server webrick -e production
Or, better, use this post to start webrick automatically on login.
I think the right way is to add this two lines in crontab:
PATH = /home/myname/.rvm/rubies/ruby-2.0.0-head/bin:$PATH
@reboot ruby script/rails server webrick -e production
Or, better, use this post to start webrick automatically on login.
edited Apr 13 '17 at 12:23
Community♦
1
1
answered Jul 6 '13 at 19:48
Radu RădeanuRadu Rădeanu
128k37 gold badges270 silver badges336 bronze badges
128k37 gold badges270 silver badges336 bronze badges
Radeanu thanks for your answer but they both are not working for me. Any other idea?
– petwho
Jul 7 '13 at 15:33
@petwho Can you start it from terminal? If yes, how?
– Radu Rădeanu
Jul 7 '13 at 15:48
I am not sure what do you mean by starting it from terminal. However, I tried both on terminal and GUI approaches. For GUI approach (which you linked on your answer): I entered this line: "/home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production &" to "command" field (and event removed the ampersand character at the end of the command). They both not working. I also added "x" permission to all users to file under ~/.config/autostart/webrick and /etc/rc.local. I'm really getting hairy with this.
– petwho
Jul 8 '13 at 2:59
add a comment
|
Radeanu thanks for your answer but they both are not working for me. Any other idea?
– petwho
Jul 7 '13 at 15:33
@petwho Can you start it from terminal? If yes, how?
– Radu Rădeanu
Jul 7 '13 at 15:48
I am not sure what do you mean by starting it from terminal. However, I tried both on terminal and GUI approaches. For GUI approach (which you linked on your answer): I entered this line: "/home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production &" to "command" field (and event removed the ampersand character at the end of the command). They both not working. I also added "x" permission to all users to file under ~/.config/autostart/webrick and /etc/rc.local. I'm really getting hairy with this.
– petwho
Jul 8 '13 at 2:59
Radeanu thanks for your answer but they both are not working for me. Any other idea?
– petwho
Jul 7 '13 at 15:33
Radeanu thanks for your answer but they both are not working for me. Any other idea?
– petwho
Jul 7 '13 at 15:33
@petwho Can you start it from terminal? If yes, how?
– Radu Rădeanu
Jul 7 '13 at 15:48
@petwho Can you start it from terminal? If yes, how?
– Radu Rădeanu
Jul 7 '13 at 15:48
I am not sure what do you mean by starting it from terminal. However, I tried both on terminal and GUI approaches. For GUI approach (which you linked on your answer): I entered this line: "/home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production &" to "command" field (and event removed the ampersand character at the end of the command). They both not working. I also added "x" permission to all users to file under ~/.config/autostart/webrick and /etc/rc.local. I'm really getting hairy with this.
– petwho
Jul 8 '13 at 2:59
I am not sure what do you mean by starting it from terminal. However, I tried both on terminal and GUI approaches. For GUI approach (which you linked on your answer): I entered this line: "/home/myname/.rvm/rubies/ruby-2.0.0-head/bin/ruby /home/myname/redmine-2.3.1/script/rails server webrick -e production &" to "command" field (and event removed the ampersand character at the end of the command). They both not working. I also added "x" permission to all users to file under ~/.config/autostart/webrick and /etc/rc.local. I'm really getting hairy with this.
– petwho
Jul 8 '13 at 2:59
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f317133%2flaunch-rails-webrick-server-at-startup%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown