GithubHelp home page GithubHelp logo

promptly-deploy-scripts's Introduction

Promptly Deployment Scripts

These instructions (and included scripts) streamline deploying Promptly onto an Ubuntu server, specifically:

  • Ubuntu 12.04.4 LTS
  • 1GB RAM minimum

Step 1 (Manual): Create a new user promptly with sudo and log into it

Create a new user promptly by using the below commands; give the user a password and write it down.

adduser promptly --gecos "" --ingroup sudo
su promptly
cd ~

Step 2 (Manual): Get setup scripts from GitHub

sudo apt-get install -y git
git clone https://github.com/daguar/promptly-deploy-scripts.git
cd promptly-deploy-scripts

Step 3 (Manual): Configure the deployment variables

On the server, edit the promptly_deploy_config.conf file, replacing the dummy data there with the specific configuration variables (like Twilio phone number) for your deploy.

(Dummy data is provided in case you are simply trying out out these deploy scripts.)

Step 4 (Scripted): Run setup script

Run the below command; it will ask you for the promptly user's password a few times (type it in and hit enter) and also ask you to hit enter to continue a few times.

bash setup_promptly.sh

(This script should take 5-15 minutes to run.)

Step 5 (Scripted): Test the web server with a dummy database

Now we'll run a script to set up a dummy database (using SQLite) to make sure that the web server and app is working.

cd ~/promptly-deploy-scripts
bash test_web_server_with_sqlite_database.sh

(This script should take about 3-6 minutes to run.)

You should now be able to visit the IP of the server in a browser and view the Promptly deploy, e.g. http://10.0.0.2/

Step 6 (Manual): Configure production database connection

The setup script will set up a SQLite database to test that the web server is working. You will need to manually configure /home/promptly/promptly/config/database.yml on the server with your own database connection details.

After that, you will need to re-run a few steps in the script:

rake db:schema:load
rake db:seed
rake assets:precompile

sudo service apache2 restart

promptly-deploy-scripts's People

Contributors

daguar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.