Description=Run the service
# change the workspace
#path to executable.
#executable is a bash script which calls jar file
When you install mysql on Ubuntu (I use 16.04), it requires you to fill the admin password for the first time before finishing the installation. This prompt will wait the user input until you fill the password.
This trick is very helpful if you want to install mysql in Dockerfile, and skipping the password prompt:
Create a dedicated user for the app, for example, ubuntu user. And this also make the ubuntu user with sudo privilege and run the command without password. Which is useful to run command that needs sudo privilege in the next steps.
Install rails with gem, and create new app without writing the Gemfile. Why? because everytime I create new app, I ended up facing errors with dependencies in Gemfile. So, it safe to setup new app without the Gemfile, we’ll create it manually later.
ubuntu~$ gem install rails
ubuntu~$ rails new app --skip-gemfile
Create the Gemfile:
ubuntu~$ touch ~/app/Gemfile
ubuntu~$ vim ~/app/Gemfile
Gemfile, fill these dependencies below into the file, save and exit: