A
A
Anton Ivanov2015-10-14 04:27:07
PostgreSQL
Anton Ivanov, 2015-10-14 04:27:07

How to make a demo site?

Hello.
There is an application on rails 4.2 It is
necessary to make a demo site with this application. So that people can see and use all the features.
I want to know how it is customary to organize such sites.
As I see it. In the application, I create separate settings for the demo environment (base name, for example).
I deploy the application on a separate server and fill the demo database with random data with a script.
At this stage all is well. The question is how to prohibit any record in the database as painlessly as possible? Is there some "magic" function to do this? smile Or to forbid record at base level?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nazar Mokrinsky, 2015-10-14
@nazarpc

Sometimes I saw an option with an automatic reset of everything and everything, for example, every hour.
Now I would recommend building a Docker container for the same purpose, and at any time run as many instances as needed and drop them when needed.

J
Jeiwan, 2015-10-14
@Jeiwan

You can make a multitenancy: make a subdomain, bind it to a specific "tenant" (gem apartment), prohibit registration on the subdomain, create a demo user, give a username and password from it to users, cut write permissions for this user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question