I can’t seem to get this app running from Github. It looks like a complete app (https://github.com/harrystech/prelaunchr) but whatever I do, it won’t work on the 1 click ruby on rails droplet. Any ideas on what steps I need to take to get it up and running? There is only one guide on here, and it’s not very helpful… Thanks in advance!
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!
@asb Update: It seems I’ve been using the wrong password. But, now it gives me another error: could not connect to server: Connection refused Is the server running on host “localhost” (127.0.0.1) and accepting TCP/IP connections on port 5432?
Hi!
There are a number of things going on here that make this not as straight forward as it could be. First, prelaunchr is set up to use Postgress as it’s database by default while the one-click app is pre-installed with MySql. Next, prelaunchr want to use older versions of a number of gems that come preinstalled on the image. So we need to uninstall them and install the need versions. Finally, there seems to be an issue with the default asset settings for prelaunchr.
Using the following steps, I was able to get prelaunchr up and running:
rm -rf /home/rails/*
cd /home/rails/
git clone https://github.com/harrystech/prelaunchr.git .
nano Gemfile # Add "gem 'mysql2'"
nano config/database.yml # Change 'postgres' to 'mysql2' and add user/pass for the database
gem list | cut -d" " -f1 | xargs gem uninstall -aIx # Uninstall gems that might conflict
bundle install
bundle exec rake db:create db:schema:load db:seed
nano config/environments/production.rb # Set `config.assets.compile = true`
chown -R rails:www-data *
service unicorn restart
Hey,
I’ve been reading this upside and down and I cant seem to get this to work.
My problem is with the mysql password. When I run “bundle exec rake db:create db:schema:load db:seed”, I get:
“Access denied for user ‘root’@‘localhost’ (using password: NO). Please provide the root password for your mysql installation”
I haven’t set the user name and password in the database.yml file, as I can’t figure out where to put it. I’ve tried entering the information in basically every possible place, but nothing I do seems to work. I’d love some help!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.