Godwin
11 years ago
18 changed files with 3270 additions and 458 deletions
@ -0,0 +1,7 @@ |
|||||
|
#!/bin/bash |
||||
|
# The logic to start up your application should be put in this |
||||
|
# script. The application will work only if it binds to |
||||
|
# $OPENSHIFT_INTERNAL_IP:8080 |
||||
|
export PATH=$OPENSHIFT_RUNTIME_DIR/bin:$PATH |
||||
|
cd $OPENSHIFT_REPO_DIR |
||||
|
rails server -b $OPENSHIFT_INTERNAL_IP -p $OPENSHIFT_INTERNAL_PORT -d |
@ -0,0 +1,4 @@ |
|||||
|
#!/bin/bash |
||||
|
# The logic to stop your application should be put in this script. |
||||
|
kill -9 `ps -ef | grep "rails server" | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1 |
||||
|
exit 0 |
File diff suppressed because it is too large
@ -1,7 +0,0 @@ |
|||||
RSpec.configure do |config| |
|
||||
config.include Delorean |
|
||||
|
|
||||
config.before(:each) do |
|
||||
back_to_the_present |
|
||||
end |
|
||||
end |
|
@ -1,15 +1,15 @@ |
|||||
RSpec.configure do |config| |
RSpec.configure do |config| |
||||
|
|
||||
config.before(:suite) do |
config.before(:suite) do |
||||
DatabaseCleaner.strategy = :transaction |
#DatabaseCleaner.strategy = :transaction |
||||
DatabaseCleaner.clean_with(:truncation) |
#DatabaseCleaner.clean_with(:truncation) |
||||
end |
end |
||||
|
|
||||
config.before(:each) do |
config.before(:each) do |
||||
DatabaseCleaner.start |
#DatabaseCleaner.start |
||||
end |
end |
||||
|
|
||||
config.after(:each) do |
config.after(:each) do |
||||
DatabaseCleaner.clean |
#DatabaseCleaner.clean |
||||
end |
end |
||||
end |
end |
||||
|
Loading…
Reference in new issue