![]() ![]() You should now be able to connect with your Discourse app on - try it out! Start rails server: bundle exec rails server Try running the specs: bundle exec rake autospec RAILS_ENV=test bundle exec rake db:create db:migrate Now that you have successfully installed gems, run these commands: bundle exec rake db:create Switch to your Discourse folder: cd ~/discourse ![]() ![]() Setup DatabaseĬreate role with the same name as your ubuntu system username: sudo -u postgres createuser -s "$USER" ~ indicates home folder, so Discourse source code will be available in your home folder. Install Discourse on Ubuntu for Development Clone DiscourseĬlone the Discourse repository in ~/discourse folder: git clone ~/discourse Then go through all the remaining steps of the Ubuntu guide. Now that we have installed Discourse dependencies, let’s move on to install Discourse itself.īefore setting up the database you have to start PostgreSQL service & Redis server manually using following commands sudo service postgresql start The script is fine-tuned for Discourse, and includes all the packages required for Discourse installation. In case you have any of this package pre-installed and don’t want to run entire script, see the script and pick the packages you don’t have currently installed. This will install following new packages on your system: ![]() Install Discourse on Ubuntu for Development Install Discourse DependenciesĪs regular user run this script in terminal, to setup Rails development environment:- bash <(wget -qO- ) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |