Skip to content

king-btc/imagewall-main

Repository files navigation

README

Installation

  1. Install Ruby version 3.1.2.
    • Windows - Use RubyInstaller2, here
  2. Install Rails: gem install rails
  3. Clone this repository and run bundle install in the root.
  4. Install PostgreSQL.
    1. In pg_hba.conf (On Windows 10, at C:\Program Files\PostgreSQL\XXX\data\pg_hba.conf), change authentication method to "trust" for local connections (Password not required).
    2. Windows - add to path (e.g. "C:\Program Files\PostgreSQL\9.6\bin")
    3. Add a role for your user name:
      1. createuser -U postgres <USERNAME>
      2. ALTER USER <USERNAME> WITH SUPERUSER
    4. Add a database for the app: createdb imagewall_development -U <USERNAME>
    5. Bring the database up to date: rails db:migrate
  5. Get the file config/application.yml from IT and add it. (The file holds access keys and passwords - too sensitive for bitbucket!)
  6. Run the app: rails s in the app root.

Setup

  1. Create a user in the app.
  2. Run UPDATE users SET is_sales_admin = 't', is_marketing_admin = 't', is_super_admin = 't' WHERE email = '<EMAIL>'; in psql (psql imagewall_development).
  3. Create the default material in the app. Currently this is Solanum (Excel id: solanumSteel).

Deployment

We use Heroku to host the website. There is a bitbucket pipeline set up which syncs the master branch of the repository with Heroku. So, if you push to master and have access to Heroku, it should build and publish automatically. You can also push to Heroku manually:

  1. Install Heroku CLI
  2. heroku login
  3. heroku git:remote -a zahnerimagewall
  4. git push heroku master

Notes

  1. 2018-09-24 Removed the ability to buy a design directly from the website. Hadn't been used, and will allow us to discontinue our TaxJar subscription. Key functions were left in place in anticipation of turning this back on at some point in the future. If it becomes clear that won't happen, all references to purchasing, taxes, and Stripe can be removed.

Releases

No releases published

Packages

No packages published