This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from scalableinternetservices/main
Update load testing 1
- Loading branch information
Showing
29 changed files
with
231 additions
and
5,002 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,11 @@ Hydra is a twitter-like social network. | |
|
||
### UI Mockups | ||
|
||
## Steps to seed in app server | ||
- Add `gem "web-console"` to your Gemfile and run `docker-compose run web bundle install` and `docker-compose run web yarn install` for the updated Gemfile.lock and yarn.lock. | ||
- In config/environments/production.rb, add `config.web_console.development_only = false` to enable running web console on the app server. | ||
- On AWS, find the IP address of the app server instance (go to EC2, then go inside your instance. Click "connect", go to "ssh client" tab, and find a line looking like `ssh -i "Hydra.pem" [email protected]`. Change the "root" to "ec2-user", then run it. | ||
- Once on the app server, run `cd /var/app/current`, then `RAILS_ENV=production bundle exec rake db:seed` | ||
|
||
## Steps to get your tsung log to local machine | ||
- Assuming your tsung instance IP address is 34.222.195.237, from your local machine, run `rsync -auvL -e "ssh -i Hydra.pem" [email protected]:tsung_logs .` to get the logs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
class DashboardController < ApplicationController | ||
include AccessControlConcern | ||
|
||
@@post_limit = 5 | ||
@@rec_user_limit = 5 | ||
@@rec_group_limit =3 | ||
|
||
def index | ||
@users = User.all | ||
@groups = Group.all | ||
@posts = Post.where(groupid: 0) | ||
@limited_posts = Post.where(groupid: 0).limit(@@post_limit) | ||
@rec_users = @users.limit(@@rec_user_limit) | ||
@rec_groups = @groups.limit(@@rec_group_limit) | ||
@post =Post.new | ||
end | ||
end | ||
|
||
def show_more_posts | ||
@@post_limit += 5 | ||
redirect_to "/dashboard" | ||
end | ||
|
||
def show_more_rec_users | ||
@@rec_user_limit += 5 | ||
redirect_to "/dashboard" | ||
end | ||
|
||
def show_more_rec_groups | ||
@@rec_group_limit += 3 | ||
redirect_to "/dashboard" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.