I want to move my nopcommerce site to another machine but I dont want to lose everything.
How can I do that? Is there any migration guide for NOP Commerce?
Thanks in advance
1. Export your database as sql.
2. Zip your entire site files from the website root.
1. Create the database. Note the server details, database name, username and password.
2. Import the sql in the sql server.
3. Extract the zip files in your new server's website root.
4. Look for file Settings.txt (<4.0) or dataSettings.json (>4.0) in your App_Data directory, search for the connection string and modify it to match the ones noted in step 1.
5. Check if everything is working well.
Hope that helps.
Thanks for your reply.
"Export your database as sql"
Can you give more details of what you mean please?
I don't agree with "Export your database as sql", unless you are downgrading your version of SQL Server. It is better/faster to do a Backup and Restore of the database.
OK So I follow the procedure above.
Now I have no graphics because the Source server
(C:\Inetpub\vhosts\domain.com\httpdocs\content\images\thumbs\saleitem.jpg) stores the graphics on a different path than the NEW server.
How do I get the graphics to show up on the web pages. How do I map the graphics from the Source Server to the New Server? they are not the same paths!
Thumbs get automatically generated if not present.
Where where you storing images in your old system (based on Settings)- in the database or the file system?
I stored them in the File System. I download an Excel sheet of the Products and under Picture1 I have the paths to the graphic files. That is my problem The Old server and the New server paths do not match.
Old Server File Path:
NEW SERVER File Path (h:\root\home\domain\www\nopcart\content\images\thumbs\saleitem.jpg)
Everything works OK when I do the migration EXCEPT for there are no graphics showing. Just the default.png file The graphics are in the folders and made the migration but the PATHS are broken.
Server path does not matter here.
If pictures saved in file system, original pictures (not application generated thumb images) must be saved in content > images (for < v4.0) directory.
They are in the /Content/images/thumbs/ folders. In the download excel sheet the path to Picture1 is on H:// for the Source server and it is C:// for the destination server so they do not match. I have to change the destination folder to match source server and there is no H:// directory on destination server.