Usage / Deployment Instructions
Step 1: Open Putty for SSH
Step 2: Open Putty and Type <instance public IP> at “Host Name”
Type "root" as user name and “miri@123” as Password.
Note: Type the following command on the instance and press enter: vi /etc/hosts

Following screen will appear and press “insert” button to enter in the insert mode:

Take the Private Ip address from your machine as per the below screenshot and then add it as the second line of your command screen with that Private ip address as shown in screenshot.


Then press Esc button and type :wq and press enter to exit from the text editor.

Note: Please run the following command: echo "127.0.0.1 `hostname`" >> /etc/hosts
Then run the command vi /etc/hosts and exit the file by pressing the button Esc and then enter :wq then press enter.

Step 3: Command: cd ~/spree
Command: bundle install
Note: this will install the bundle as shown in below screen.


Command: rails g spree:install --user_class=Spree::User
Note: Type “y” and press “enter” when prompted.


Command: rails g spree:auth:install
Note: Type “y” and press “enter” when prompted.

Command: rails g spree_gateway:install

Command: rails server --binding=0.0.0.0

Step 4: Hit the browser with the public IP of the running instance as: http://<public IP>:3000
Welcome to the dashboard. You can login to admin by clicking “Login”.

Username: spree@example.com
Password: miri@123

