Frequently Asked Questions
Last updated
Last updated
/input
and the file names in my csv files exactly match the file names of my pictures, but I still don't see the new pictures loaded in my simulation. What should I do?Check that you have defined the CDN URL value properly.
Navigate to the .env
file:
If you are not using a CDN, remove the line CDN=https://d35ayucabfexcy.cloudfront.net
.
If you are using a CDN, replace the URL with your CDN URL.
If you do not know if you are using a CDN or not, you are likely not using one, so remove the line of code.
Save the file, then restart your local environment. In the Terminal/Command prompt:
If the application is already running, enter CTRL+C, then Y to stop the application.
Start your application again by entering npm run dev
.
/input
, but I don't see the new content in my simulation. What should I do?Make sure you have repopulated the database with the new simulation content by entering the command in the terminal/command prompt: node populate.js
, which runs the script populate.js.
Note: Every time you make any changes to the csv files, you will need to repopulate your databases with the csv content (whether that is the database you are using for your local Truman or your deployed Truman). This is because the simulation gets the simulation content from the database, and not the csv files.
To see emojis in your csv files and to use emojis in your simulation content, you will need to ensure your csv files are opened and saved as a CSV UTF-8 (Comma delimited) (*.csv) file format.
More information about this is found under the note "How to edit the csv files..." on the page.
All passwords are hashed when saved in the database. They are never saved "as is", to ensure the privacy and security of all Truman users. Therefore, no one knows their password, even the researcher.
So, the only way to assist them is to reset their account with a new temporary password and to send them the new temporary password.
To do this, you will need to run the script updatePassword.js, which connects to the database defined in the .env file, finds the right user, and updates their password.
To run this script, enter in the terminal/command prompt from the root directory of your project: node updatePassword.js <email> <password>
. Replace <email> and <password> with the email associated with the desired account and the new password (for example: node updatePassword.js johndoe@gmail.com 12345
).
Ensure that that you run this command on your server if the account you are changing the password to is for your deployed application (so that it finds and changes the account in the right database).
Afterwards, you will need to send the participant their new temporary password. Please remind them that they will need to change the password again for their own security and privacy by going to the Update My Profile page on the website.