1. Create an account at wepay.com. Register learnexa.com as a new client application for this account. Please note the client application id and secret.
2. Login as production deployment user (expprodl) - ssh expprodl@10.166.152.11
Create file shared/config/wepay.yml and update it's contents.
vi /deploy/crossbow/shared/config/wepay.yml # 1) First copy the default contents to wepay.yml from here - https://repos.exphosted.com/svnrepos/crossbow/trunk/config/wepay.yml # 2) Now, update the 'production' stanza's client_id and client_secret with the learnexa.com's client details we got earlier. Save and exit.
3. Change the deploy script to symlink the wepay.yml file.
Open the file and add the following line as line no: 164
vi /home/expprodl/crossbow/config/deploy.rb
# Add the following line as line no: 164 -
run "ln -nfs #{shared_path}/config/wepay.yml #{release_path}/config/wepay.yml"
# Save and exit
The last task should look like this -
task :dblink, :roles => :app do
..........................
..........................
run "ln -nfs #{shared_path}/config/wepay.yml #{release_path}/config/wepay.yml"
end
4. Add PUBLIC_URL in production.rb
vi /deploy/crossbow/shared/config/production.rb #Add the following line at the end of the file PUBLIC_URL = "http://learnexa.com" #Save and exit
1. Register qa01.exphosted.com as a new client application for wepay staging account. Please note the client application id and secret.
2. Login as staging deployment user (expstagl) - ssh expstagl@qa01.expshosted.com
Create file shared/config/wepay.yml and update it's contents.
vi /deploy/crossbow/shared/config/wepay.yml # 1) First copy the default contents to wepay.yml from here - https://repos.exphosted.com/svnrepos/crossbow/trunk/config/wepay.yml # 2) Now, update the 'staging' stanza's client_id and client_secret with the client details we got earlier. Save and exit.
3. Change the deploy script to symlink the wepay.yml file.
Open the file and add the following line as line no: 164
vi /home/expstagl/crossbow/config/deploy.rb
# Add the following line as line no: 164 -
run "ln -nfs #{shared_path}/config/wepay.yml #{release_path}/config/wepay.yml"
# Save and exit
The last task should look like this -
task :dblink, :roles => :app do
..........................
..........................
run "ln -nfs #{shared_path}/config/wepay.yml #{release_path}/config/wepay.yml"
end
4. Add PUBLIC_URL in staging.rb
vi /deploy/crossbow/shared/config/staging.rb #Add the following line at the end of the file PUBLIC_URL = "http://qa01.exphosted.com" #Save and exit