Skip to content

Forge Server Setup

Rachel Rine edited this page Jan 25, 2019 · 2 revisions

1. Server Provisioning

  1. Open Forge
  2. Create a new Linode server
  3. Give it a name
  4. Select a size, use the smallest available
  5. Leave database name blank and install MariaDB
  6. Create server (will take 10 minutes or so)

2. Repo Setup

  1. Create a new private repo on the madmadmad github account with a readme.md
  2. Copy the repo URL
  3. Create a new project from this boilerplate, and initialize a new repo
  4. Add the github repo as a new remote
  5. Push and prosper

3. App Deployment

  1. Return to Forge
  2. Navigate to your provisioned server
  3. Under active sites, select the default
  4. At the bottom of the page, click the X to delete the default
  5. Create a new site with your development url
  6. Choose github as your source
  7. Enter the repo path madmadmad/yourproject and set the branch to master
  8. If desired, you can turn quick deploy on to deploy the site automatically on push
  9. Point the DNS to the IP of your new server; yourproject.madmadmad.net dev domains can be created in Hover.

4. Database Creation

  1. From the server admin panel on Forge, select the MySQL tab
  2. Add a database with a custom username and password

a. Remote access

  1. From the server admin panel on Forge, select the Network tab
  2. Add a new firewall rule called MYSQL on port 3306 with your IP address

b. Database admin

  1. Open Sequel Pro
  2. Select the SSH option
  3. Enter your connection credentials.
    • MySQL Host: 127.0.0.1
    • Username: set above
    • Password: set above
    • SSH Host: server IP
    • SSH User: forge
    • SSH Password: root password emailed to you at time of server provisioning

Note: You do not have to enable remote access to connect to the database via Sequel Pro.

5. Paths, permissions and users

  1. The server file path for forge is always /home/forge/your.site.url/public

  2. The server user is always forge

  3. Public folder permissions set to 755