Report this

What is the reason for this report?

Using Rails 16.04 One-Click-App (no usage/config documentation) *Errors

Posted on May 12, 2017

So I’m finally trying to deploy an app on the newish 16.04 Rails 1ClickApp and I’m following the old Rails 14 1ClickApp tutorial as there is no guides on how to use the current. I’m at this step: “we’ll need source the /etc/default/unicorn file with this command: . /etc/default/unicorn”

Of course the location of this file as well as its name has changed in 16.04 to ’ /etc/systemd/system/unicorn.service’

Now when I try the command ‘/etc/systemd/system/unicorn.service’ it returns multiple errors:

[Unit]: command not found No command ‘Rails’ found, did you mean: Command ‘rails’ from package ‘ruby-railties’ (universe) Rails: command not found [Service]: command not found -bash: /home/rails/rails_project/.unicorn.sh: No such file or directory [Install]: command not found

The only error I have a slight hint on why it’s not working is the “No such file or directory” because I don’t have the file ‘.unicorn.sh’ in my rails app for some reason. I would greatly appreciate help!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Additionally I have found no articles or guides of anyone using the Rails 16.04 one-click-app

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.